Context Menu
FREERight-click / long-press menu with submenus, checkbox and radio items and shortcuts.
Installation
Terminal
npx @bloxa/cli add context-menu
# or: npx shadcn@latest add @bloxa/context-menuPackages installed automatically: radix-ui
Examples
File menu
Right-click here (long-press on touch)
API reference
Every component also accepts the props of the element it renders.
ContextMenu
Same parts as DropdownMenu: Item, CheckboxItem, RadioItem, Label, Separator, Shortcut, Sub.
| Prop | Type | Default | Description |
|---|---|---|---|
| ContextMenuTrigger | element | — | The right-clickable area. |