created:4/8/2021
updated:4/8/2021
source lines:61
comments %:13
Sidebar
grommet-controls
3.0.1Collapsible side bar component
$ npm install grommet-controlsimport { Sidebar } from 'grommet-controls';<Sidebar title='My title'> ...</Sidebar>
Name | Description | Default | |
---|---|---|---|
ISidebarProps (4 properties) | |||
title | Title string or any react node ReactNode | undefined | |
width | The width of the side bar string | (string & { width?: string; max?: string; min?: string; }) | medium | |
collapsible | Whether the sidebar can be collapsed boolean | true | |
children | children content elements to be displayed in Sidebar ReactNode | - | |
BoxProps (27 properties) |
package | imports | peer |
---|---|---|
grommet ^2.15.0 | ResponsiveContextHeadingButtonBoxPropsBox | * |
grommet-icons/icons/Menu ^2.15.0 | Menu | * |
react ^17.0.1 | React | * |
file | imports |
---|---|
"./SidebarProps" | ISidebarProps |