Skip to Content
DocumentationDropdown Menu

Dropdown Menu

Displays a menu to the user — such as a set of actions or functions — triggered by a button.

Examples

Default

Checkboxes

Radio Group

API

PropertyTypePossible valuesDefaultDescription
…propsAll Radix DropdownMenu.Root props--All native properties of the Radix UI DropdownMenu Root component.
PropertyTypePossible valuesDefaultDescription
asChildbooleantrue, falsefalseWhen true, the component doesn’t render its own DOM element but uses the child as trigger.
…propsAll Radix DropdownMenu.Trigger props--All native properties of the Radix UI DropdownMenu Trigger component.
PropertyTypePossible valuesDefaultDescription
classNamestring--Additional CSS classes to apply to the dropdown content.
sideOffsetnumber-4Distance in pixels from the trigger to position the content.
align”start” | “center” | “end""start”, “center”, “end""center”Alignment of the content relative to the trigger.
…propsAll Radix DropdownMenu.Content props--All native properties of the Radix UI DropdownMenu Content component.
PropertyTypePossible valuesDefaultDescription
classNamestring--Additional CSS classes to apply to the menu item.
insetbooleantrue, falsefalseWhen true, adds extra indentation to the item.
variant”default” | “destructive""default”, “destructive""default”Visual variant of the item. Use “destructive” for removal/deletion actions.
disabledbooleantrue, falsefalseWhen true, disables the menu item.
…propsAll Radix DropdownMenu.Item props--All native properties of the Radix UI DropdownMenu Item component.
PropertyTypePossible valuesDefaultDescription
classNamestring--Additional CSS classes to apply to the checkbox item.
checkedboolean | “indeterminate”true, false, “indeterminate”falseCheckbox state of the item.
onCheckedChange(checked: boolean | “indeterminate”) => void--Callback called when the checkbox state changes.
childrenReact.ReactNode--Content of the checkbox item.
…propsAll Radix DropdownMenu.CheckboxItem props--All native properties of the Radix UI DropdownMenu CheckboxItem component.
PropertyTypePossible valuesDefaultDescription
valuestring--Value of the selected radio item.
onValueChange(value: string) => void--Callback called when the radio group selection changes.
…propsAll Radix DropdownMenu.RadioGroup props--All native properties of the Radix UI DropdownMenu RadioGroup component.
PropertyTypePossible valuesDefaultDescription
classNamestring--Additional CSS classes to apply to the radio item.
valuestring--Unique value of the radio item.
childrenReact.ReactNode--Content of the radio item.
…propsAll Radix DropdownMenu.RadioItem props--All native properties of the Radix UI DropdownMenu RadioItem component.
PropertyTypePossible valuesDefaultDescription
classNamestring--Additional CSS classes to apply to the label.
insetbooleantrue, falsefalseWhen true, adds extra indentation to the label.
…propsAll Radix DropdownMenu.Label props--All native properties of the Radix UI DropdownMenu Label component.
PropertyTypePossible valuesDefaultDescription
classNamestring--Additional CSS classes to apply to the separator.
…propsAll Radix DropdownMenu.Separator props--All native properties of the Radix UI DropdownMenu Separator component.
PropertyTypePossible valuesDefaultDescription
classNamestring--Additional CSS classes to apply to the shortcut.
childrenReact.ReactNode--Keyboard shortcut text (e.g., “⌘K”).
…propsAll HTML span props--All native properties of the HTML span element.
PropertyTypePossible valuesDefaultDescription
classNamestring--Additional CSS classes to apply to the submenu trigger.
insetbooleantrue, falsefalseWhen true, adds extra indentation to the trigger.
childrenReact.ReactNode--Content of the submenu trigger.
…propsAll Radix DropdownMenu.SubTrigger props--All native properties of the Radix UI DropdownMenu SubTrigger component.
PropertyTypePossible valuesDefaultDescription
classNamestring--Additional CSS classes to apply to the submenu content.
…propsAll Radix DropdownMenu.SubContent props--All native properties of the Radix UI DropdownMenu SubContent component.
Last updated on