Dropdown Menu
Presents contextual actions and selection controls from a compact trigger.
@rivetui/dropdown-menuPreview
Explore each composition interactively, then open its code in the same context.
Default
Production gateway
dep_01K2M7Q9 · fra1
Selection
Registry
Installation
Add the component source and its declared dependencies with the shadcn CLI.
Install component
bunx --bun shadcn@latest add @rivetui/dropdown-menuPublic interface
API reference
Component-specific props are listed here. Native element and Base UI props continue to pass through.
DropdownMenu
| Prop | Type | Default |
|---|---|---|
open | boolean | — |
defaultOpen | boolean | false |
onOpenChange | (open: boolean, details) => void | — |
DropdownMenuContent
| Prop | Type | Default |
|---|---|---|
align | "start" | "center" | "end" | "end" |
side | "top" | "right" | "bottom" | "left" | "bottom" |
sideOffset | number | 6 |