43 Pro components and page blocks

Get Pro

Context Menu

New

Preview

Customize

Long press500ms

Usage

import { ContextMenu } from "@/components/uibrik/context-menu/context-menu";

<ContextMenu items={items}>…</ContextMenu>

Installation

npx shadcn@latest add https://uibrik.com/r/context-menu.json
Adds the files to components/uibrik/context-menu and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/context-menu.

Props

ContextMenu
longPress
Type number
500
How long a touch must be held to open it.
childrenrequired
Type ReactNode
–
The area that responds to right-click.
itemsrequired
Type MenuItem[]
–
Same items as Dropdown Menu: actions, checkbox, radio, sub, label, separator.
onOpenChange
Type (open) => void
–
Called when the menu opens or closes.
className
Type string
–
Classes for the area.
menuClassName
Type string
–
Classes for the menu panel.