Dropdown Menu

Contextual menu with actions and navigation options.

Examples

With Icons

With Submenus

With Checkboxes

API Reference

PropTypeDefaultDescription
openbooleanundefinedThe controlled open state of the dropdown menu.
defaultOpenbooleanfalseThe default open state when initially rendered.
onOpenChange(open: boolean) => voidundefinedEvent handler called when the open state changes.
modalbooleantrueWhen true, keyboard navigation and focus are trapped within the dropdown menu.