Components
GlassContextMenu
A menu triggered by a right-click (or long-press) gesture on a region.
Preview
Right-click here
Usage
Props
GlassContextMenu
| Prop | Type | Default | Description |
|---|---|---|---|
onOpenChange | (open: boolean) => void | — | Fired when open state changes |
modal | boolean | true | Prevent interactions with outside content |
GlassContextMenuItem
| Prop | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disable the item |
onSelect | (event) => void | — | Fired when the item is selected |
All Radix ContextMenu props are also supported.