Dropdown Menu
Displays a menu to the user — such as a set of actions or functions — triggered by a button.
Made by imskyleenInstallation
Usage
With Highlight
Without Highlight
API Reference
DropdownMenu
Radix UI API Reference - DropdownMenu.RootDropdownMenuTrigger
Radix UI API Reference - DropdownMenu.TriggerDropdownMenuPortal
Radix UI API Reference - DropdownMenu.PortalThe forceMount
property is not supported in the DropdownMenuPortal
component, as it is used for animation.
DropdownMenuContent
Radix UI API Reference - DropdownMenu.ContentProp | Type | Default |
---|---|---|
container? | HTMLElement | document.body |
transition? | Transition | { duration: 0.2 } |
...props? | HTMLMotionProps<"div"> | - |
The forceMount
and asChild
properties are not supported in the
DropdownMenuContent
component, as it is used for animation.
DropdownMenuHighlight
Animate UI API Reference - HighlightProp | Type | Default |
---|---|---|
transition? | Transition | { type: "spring", stiffness: 350, damping: 35 } |
animateOnHover? | boolean | true |
DropdownMenuLabel
Radix UI API Reference - DropdownMenu.LabelDropdownMenuSeparator
Radix UI API Reference - DropdownMenu.SeparatorDropdownMenuGroup
Radix UI API Reference - DropdownMenu.GroupDropdownMenuItem
Radix UI API Reference - DropdownMenu.ItemDropdownMenuItemIndicator
Radix UI API Reference - DropdownMenu.ItemIndicatorDropdownMenuHighlightItem
Animate UI API Reference - HighlightItemDropdownMenuCheckboxItem
Radix UI API Reference - DropdownMenu.CheckboxItemDropdownMenuRadioGroup
Radix UI API Reference - DropdownMenu.RadioGroupDropdownMenuRadioItem
Radix UI API Reference - DropdownMenu.RadioItemDropdownMenuShortcut
Prop | Type | Default |
---|---|---|
...props? | React.ComponentProps<"span"> | - |
DropdownMenuSub
Radix UI API Reference - DropdownMenu.SubDropdownMenuSubTrigger
Radix UI API Reference - DropdownMenu.SubTriggerDropdownMenuSubContent
Radix UI API Reference - DropdownMenu.SubContentProp | Type | Default |
---|---|---|
transition? | Transition | { duration: 0.2 } |
...props? | HTMLMotionProps<"div"> | - |
The forceMount
and asChild
properties are not supported in the
DropdownMenuSubContent
component, as it is used for animation.