Back to DropMenu
DropMenu

Profile menu

Avatar trigger with account header and sign-out.

API

PropTypeDefaultDescription
open / onOpenChangeboolean / (open: boolean) => voidControlled open state.
defaultOpenbooleanInitial open state when uncontrolled.
modalbooleanWhen true, limits interaction outside the menu like a dialog.
asChild (DropMenuTrigger)booleanMerge props onto the child element instead of rendering a button.
align / side (DropMenuContent)start | center | end / top | right | bottom | leftPlacement relative to the trigger.
sideOffset (DropMenuContent)number6Gap in pixels between trigger and menu.
inset (DropMenuItem / DropMenuLabel)booleanExtra left padding for nested menu rows.
icon (DropMenuItem)IconNameOptional leading icon from the curated registry.
destructive (DropMenuItem)booleanApplies destructive styling for irreversible actions.
onSelect (DropMenuItem)() => voidCallback fired when the item is activated.
checked (DropMenuCheckboxItem)booleanShows a trailing check when true.
View full API on DropMenu

More DropMenu examples