DropdownMenu
ShowcaseComponentsDropdownMenu
Overlays

DropdownMenu.

A keyboard-navigable menu with accessible selection and dismissal.

Real interactive component
Live demo

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

9 props
ParameterTypeRequiredDefaultPossible valuesDescription
childrenReactNodeYes——Trigger and menu items.
openbooleanNo—true · falseControlled menu state.
defaultOpenbooleanNofalsetrue · falseInitial uncontrolled state.
onOpenChange(open: boolean) => voidNo——Open state changes.
placement"bottom-start" | "bottom-end"Nobottom-startbottom-start · bottom-endPreferred menu alignment.
DropdownMenuItem.onSelect() => voidNo——Callback when an item is selected.
DropdownMenuItem.dangerbooleanNofalsetrue · falseEmphasize destructive action.
DropdownMenuItem.disabledbooleanNofalsetrue · falseDisable item.
classNamestringNo——Additional CSS class on the outer component element.