R

ContextMenu

16 parts

Anatomy

Import the parts and compose them. Each part forwards attributes to its underlying element.

vue
import {
  ContextMenuArrow,
  ContextMenuCheckboxItem,
  ContextMenuContent,
  ContextMenuGroup,
  ContextMenuItem,
  ContextMenuItemIndicator,
  ContextMenuLabel,
  ContextMenuPortal,
  ContextMenuRadioGroup,
  ContextMenuRadioItem,
  ContextMenuRoot,
  ContextMenuSeparator,
  ContextMenuSub,
  ContextMenuSubContent,
  ContextMenuSubTrigger,
  ContextMenuTrigger,
} from '@robonen/primitives/context-menu';

<ContextMenuArrow>
  <ContextMenuCheckboxItem />
  <ContextMenuContent />
  <ContextMenuGroup />
  <ContextMenuItem />
  <ContextMenuItemIndicator />
  <ContextMenuLabel />
  <ContextMenuPortal />
  <ContextMenuRadioGroup />
  <ContextMenuRadioItem />
  <ContextMenuRoot />
  <ContextMenuSeparator />
  <ContextMenuSub />
  <ContextMenuSubContent />
  <ContextMenuSubTrigger />
  <ContextMenuTrigger />
</ContextMenuArrow>

API Reference

ContextMenuArrow

Arrow

No props or events — renders its element and forwards attributes.

ContextMenuCheckboxItem

CheckboxItem

No props or events — renders its element and forwards attributes.

ContextMenuContent

Content

No props or events — renders its element and forwards attributes.

ContextMenuGroup

Group

No props or events — renders its element and forwards attributes.

ContextMenuItem

Item

No props or events — renders its element and forwards attributes.

ContextMenuItemIndicator

ItemIndicator

No props or events — renders its element and forwards attributes.

ContextMenuLabel

Label

No props or events — renders its element and forwards attributes.

ContextMenuPortal

Portal

No props or events — renders its element and forwards attributes.

ContextMenuRadioGroup

RadioGroup

No props or events — renders its element and forwards attributes.

ContextMenuRadioItem

RadioItem

No props or events — renders its element and forwards attributes.

ContextMenuRoot

Root
PropTypeDescription
dir?Direction
modal?boolean

ContextMenuSeparator

Separator

No props or events — renders its element and forwards attributes.

ContextMenuSub

Sub

No props or events — renders its element and forwards attributes.

ContextMenuSubContent

SubContent

No props or events — renders its element and forwards attributes.

ContextMenuSubTrigger

SubTrigger

No props or events — renders its element and forwards attributes.

ContextMenuTrigger

Trigger
PropTypeDescription
disabled?boolean