A pack of extensions for grommet 2
created:7/7/2021
updated:7/7/2021
loc
278
comments
3%
passed
2
failed
2
coverage
45%

VerticalMenu

avatar of atanasster
avatar of Julien Bachmann
grommet-controls
3.0.2

Hierarchical collapsible menu

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

import { VerticalMenu } from 'grommet-controls';

Main

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

avatar of atanasster
update eslint and add component-controls
12/9/2019

Julien Bachmann

avatar of Julien Bachmann
fix VerticalMenu items changed
10/22/2019

atanasster

avatar of atanasster
update for new grommet version
8/27/2019

atanasster

avatar of 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