Menu
The <Menu /> component is an accessibility-focused dropdown menu.
Built on top of the Reach UI Menu Button.
When To Use:
When you need to trigger actions from a dropdown (such as when clicking in the menu of a desktop application).
⚠️  Do not use this if you need to store a value. Use a <select /> component instead.
import {  MenuContainer,  MenuButton,  MenuList,  MenuItem,  MenuLink,} from 'minerva-ui';With Divider
Positioned To Right
Change alignment for MenuList relative to parent
Props
Most props are extended from Reach UI's <MenuButton /> component
<Menu />
| Name | Type | Is Required | Default | Description | 
|---|---|---|---|---|
| children | node | optional | none | 
<MenuButton />
| Name | Type | Is Required | Default | Description | 
|---|---|---|---|---|
| children | node | optional | none | 
<MenuList />
| Name | Type | Is Required | Default | Description | 
|---|---|---|---|---|
| children | node | optional | none | |
| menuPosition | leftorright | optional | left | Change alignment for MenuListrelative to parent | 
<MenuItem />
| Name | Type | Is Required | Default | Description | 
|---|---|---|---|---|
| onSelect | function | required | none | Callback that fires event MenuLink is selected | 
| children | node | optional | none | 
<MenuLink />
Similar to <MenuItem />, but used for links (renders an <a /> tag)
| Name | Type | Is Required | Default | Description | 
|---|---|---|---|---|
| onSelect | function | required | none | Callback that fires event MenuLink is selected | 
| children | node | optional | none |