Components
GlassDropdownMenu
A glassmorphism-styled dropdown menu powered by Radix UI.
Preview
Usage
With Labels and Separator
Props — GlassDropdownMenu
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | — | Controlled open state |
defaultOpen | boolean | false | Initial open state (uncontrolled) |
onOpenChange | (open: boolean) => void | — | Callback on open state change |
modal | boolean | true | Whether the menu is modal |
Props — GlassDropdownMenuContent
| Prop | Type | Default | Description |
|---|---|---|---|
sideOffset | number | 4 | Offset from the trigger in pixels |
align | "start" | "center" | "end" | "start" | Alignment to the trigger |
Props — GlassDropdownMenuItem
| Prop | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables this item |
onSelect | (event: Event) => void | — | Callback when the item is selected |
All Radix DropdownMenu.* props are also accepted.