Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

menu-list

v4.5.2arrow_drop_down
v4.5.2
v3.9.2
STATUS
Passing
DOWNLOADS
1,373
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
2 months ago
SIZE
21 KB
A permanently displayed menu following https://www
2 contributors
Use menu-list in your project ?
Copied
npm i @bit/mui-org.material-ui.menu-list
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right
menuList ()

A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton It’s exposed to help customization of the Menu component. If you use it separately you need to move focus into the component manually. Once the focus is placed inside the component it is fully keyboard accessible.

Properties
NameTypeDescription
actions
{"current":"object"}
autoFocus
bool

If true, will focus the [role="menu"] container and move into tab order

autoFocusItem
bool

If true, will focus the first menuitem if variant="menu" or selected item if variant="selectedMenu"

children
node

MenuList contents, normally MenuItems.

className
string
disableListWrap
bool

If true, the menu items will not wrap focus.

onKeyDown
function
variant
'menu' | 'selectedMenu'

The variant to use. Use menu to prevent selected items from impacting the initial focus and the vertical alignment relative to the anchor element.