A pack of extensions for grommet 2
created:4/8/2021
updated:4/8/2021
source lines:278
comments %:3

VerticalMenu

grommet-controls
3.0.1

Hierarchical collapsible menu

$ npm install grommet-controls\nimport { VerticalMenu } from 'grommet-controls';\n<VerticalMenu items={...} onSelect={...} />

import { VerticalMenu } from 'grommet-controls';

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
-

Commits

Date
Author
Commit Message
8/30/2020

atanasster

update eslint and add component-controls
12/9/2019

Julien Bachmann

fix VerticalMenu items changed
10/22/2019

atanasster

update for new grommet version
8/27/2019

atanasster

initial commit 2.x alpha
4 commits

package
imports
peer
grommet
^2.15.0
TextKeyboardButtonBox
*
FormDown
*
FormNext
*
react
^17.0.1
ReactComponent
*

file
imports
"./VerticalMenuProps"
IMenuItemIVerticalMenuPropsButtonClassType

Stories

Items