Dropdown menu
A dropdown menu displays a list of options or actions when triggered.
API Reference
Usage
Properties
The DropdownMenu component extends the Bits UI <DropdownMenu> component. Find the full list of available properties in the official Bits UI documentation.
DropdownItem
| Prop | Type | Default |
|---|---|---|
icon | ComponentType | - |
DropdownSubTrigger
| Prop | Type | Default |
|---|---|---|
icon | ComponentType | - |
DropdownCheckboxItem
| Prop | Type | Default |
|---|---|---|
icon | ComponentType | - |
DropdownRadioItem
| Prop | Type | Default |
|---|---|---|
icon | ComponentType | - |
Examples
Icon support
Use the icon property to easily add an icon to the DropdownItem component.
Description
Use the Description component inside the DropdownItem component to provide additional information about the dropdown item.
Sublabel
Use the Sublabel component inside the DropdownItem component to add a secondary label to the dropdown item.
Checkbox
Use the DropdownCheckboxItem component to create a checkbox item.
Radio
Use the DropdownRadioItem component to create a radio item.
Group
Use the DropdownGroup component to group items together in the dropdown menu.
Submenu
Use the DropdownSub component to create a submenu in the dropdown menu.