created:7/7/2021
updated:7/7/2021
loc
278
comments
3%
passed
2
failed
2
coverage
45%
VerticalMenu
grommet-controls
3.0.2Hierarchical collapsible menu
$ npm install grommet-controls\nimport { VerticalMenu } from 'grommet-controls';\n<VerticalMenu items={...} onSelect={...} />
Name | Description | Default |
---|---|---|
items | Array of menu items IMenuItem[] | - |
activeItem | Initially active menu item { id?: string; label?: string; } | - |
buttonClass | Custom class to use for the button instead of RoutedButton ButtonClassType | - |
expandAll | If specified, will expand all items with chidren boolean | - |
onSelect | Function that will be called when the user selects a menu item (item?: IMenuItem) => void | - |
search | If specified, will filter the items by the search terms string | - |
package | imports | peer |
---|---|---|
grommet ^2.15.0 | TextKeyboardButtonBox | * |
grommet-icons/icons/FormDown ^2.15.0 | FormDown | * |
grommet-icons/icons/FormNext ^2.15.0 | FormNext | * |
react ^17.0.1 | ReactComponent | * |
file | imports |
---|---|
"./VerticalMenuProps" | IMenuItemIVerticalMenuPropsButtonClassType |