Dropdown
Opens a short list of actions or values from a button.
API Reference
The DropdownMenu component wraps the Radix dropdown menu in a div that opens a list of DropdownMenuItem under its trigger. Group items with DropdownMenuGroup; the item.* props below belong to DropdownMenuItem.
| Prop | Type | Default |
|---|---|---|
trigger | ReactNode | — |
children | DropdownMenuItem[] | — |
item.label | string | — |
item.description | string | — |
item.icon | ReactNode | — |
item.selected | boolean | false |
item.layout | "stacked""inline" | "stacked" |
item.onSelect | (event: Event) => void | — |
