- Components
- Overlays
Dropdown Menu
Menu with the 160ms open motion and one highlight that slides over 250ms with hover and keyboard. Check and radio items show a check.
Installation#
npx shadcn add @ortaui/dropdown-menuExamples#
Default#
Open#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| open / defaultOpen | boolean | - | Controlled or uncontrolled state. |
| onOpenChange | (open: boolean) => void | - | Called when the open state changes. |
| side / align | "top" | "right" | "bottom" | "left" / "start" | "center" | "end" | - | Placement relative to the trigger. |
| sideOffset | number | 8 | Gap to the trigger in px. |
| variant | "default" | "destructive" | - | DropdownMenuItem. |
| render | ReactElement | - | On DropdownMenuTrigger: render as a Button. DropdownMenuLinkItem renders links. |
| className | string | - | Merged with the component classes via cn(). |