SelectableMenuList
Choose wisely.
Example
Props
đšī¸ standard props
collapsed boolean
Determines if the menu is collapsed
falseitems MenuItem[]
List of menu items
[]selected string | number
Currently selected item
undefinedđ¨ style props
--selectable-menu-list-divider-background-color color
Background color of the divider
rgb(var(--global-color-background-500))--selectable-menu-list-divider-height size
Height of the divider
1px--selectable-menu-list-icon-gap size
Spacing between icon and label
10px--selectable-menu-list-spacing size
Spacing between menu items
1.5rem--selectable-menu-list-selected-color color
Text color of the selected item
rgb(var(--global-color-primary-400))--selectable-menu-list-margin-block-start size
Top margin of the menu
1rem--selectable-menu-list-margin-block-end size
Bottom margin of the menu
1remSlots
Events
onselect
Triggered when a menu item is selected
| Attribute | Type | Description |
|---|---|---|
| item | Item | The selected menu item |