menu
v4.15.0arrow_drop_downThe id attribute of the menu option.
Function that is called on click and enter/space keypress.
The icon before the label.
The children of the component.
Secondary text shown on the right.
The default theme only supports one default appearance.
Theme provided by ThemeProvider.
Name | Type | Default value | Description |
---|---|---|---|
children | node | The children of the component. | |
title | node | Title of the menu group. | |
children | node | The children of the menu group. | |
is | string | function | 'div' | Element type to use for the menu item.
For example: |
onSelect | function | () => {} | Function that is called on click and enter/space keypress. |
icon | node | The icon before the label. | |
children | node | The children of the component. | |
secondaryText | node | Secondary text shown on the right. | |
appearance | string | 'default' | The default theme only supports one default appearance. |
intent | 'none' | 'success' | 'warning' | 'danger' | 'none' | The intent of the menu item. |
theme (required) | object | Theme provided by ThemeProvider. | |
title | node | Title of the menu group. | |
selected | number | string | The current value of the option group. | |
onChange | function | Function called when selection changes. | |
options | array | List of options rendered in the group. |