Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

ContextMenuCheckboxItem

Open .md
Live preview

Loading example…

ContextMenuCheckboxItem is part of the Overlays set, imported from @jcsoftdev/ui/overlays.

import { ContextMenuCheckboxItem } from "@jcsoftdev/ui/overlays";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/overlays/context-menu.

export const Default: Story = {
render: ({ children: _children, ...menu }) => (
<div className="w-full max-w-md">
<Area key={JSON.stringify(menu)} menu={menu} />
</div>
),
};

Source of the Storybook story.

Prop Type Default Description
checked boolean | "indeterminate"
onCheckedChange ((checked: boolean) => void)
onSelect ((event: Event) => void) Runs when the item is chosen. preventDefault() keeps the menu open.
asChild boolean
disabled boolean
textValue string Text used by typeahead. Defaults to the item’s text content.
intent string
intentKey string

* 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).

packages/ui/src/overlays/context-menu/context-menu.tsx