ContextMenuTrigger
Loading example…
The area that answers to right-click. Wrap a card, row or canvas.
Import
Section titled “Import”import { ContextMenuTrigger } from "@jcsoftdev/ui/overlays";Single-component entry points tree-shake to just this component: @jcsoftdev/ui/overlays/context-menu.
export const Default: Story = { render: () => ( <div className="w-full max-w-md"> <Area /> </div> ),};Source of the Storybook story.
| Prop | Type | Default | Description |
|---|---|---|---|
disabled |
boolean |
* marks a required prop.
It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).
Storybook stories
Section titled “Storybook stories”Source
Section titled “Source”packages/ui/src/overlays/context-menu/context-menu.tsx