Dropdown Menu
Displays a menu to the user such as a set of actions or functions, triggered by a button.
Usage
Checkboxes
Radio group
Props
| Prop | Type | Default | Description |
|---|---|---|---|
align | 'start' | 'center' | 'end' | 'center' | Alignment of the dropdown content relative to the trigger |
side | 'top' | 'right' | 'bottom' | 'left' | 'bottom' | The side of the trigger on which the dropdown appears |
sideOffset | number | 8 | Distance in pixels from the trigger |
disabled | boolean | false | Disables the menu item |
checked | boolean | - | Whether the checkbox item is checked (for DropdownMenuCheckboxItem) |
value | string | - | Value for radio group items (for DropdownMenuRadioItem) |
render | ReactElement | ((props, state) => ReactElement) | - | Replaces the rendered element, for example a Button trigger or a Link item |