DropdownMenu
Group secondary commands in a menu opened by click, tap, or keyboard.
Basic usage
Give each item a unique value and handle its action in onSelect. Use disabled for unavailable items and destructive to signal destructive actions.
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
Root.defaultOpen | boolean | false |
Item.value | string | — |
Item.disabled | boolean | false |
Item.destructive | boolean | false |
Item.closeOnSelect | boolean | true |