ContextMenu API
Every prop of the 15 parts ContextMenu exports, generated from the package manifest.
import { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from '@oceanic-hub/brand-system'- Layer
- core — shadcn-derived primitives.
- Exports
- ContextMenu · ContextMenuCheckboxItem · ContextMenuContent · ContextMenuGroup · ContextMenuItem · ContextMenuLabel · ContextMenuPortal · ContextMenuRadioGroup · ContextMenuRadioItem · ContextMenuSeparator · ContextMenuShortcut · ContextMenuSub · ContextMenuSubContent · ContextMenuSubTrigger · ContextMenuTrigger
- Contract
- packages/brand-system/src/components/context-menu.contract.test-d.ts
- Demos
- 6 on the ContextMenu page — rendered live, hydrated
- Source
- packages/brand-system/src/components/context-menu.tsx
Generated from manifest/component-manifest.json, so it cannot drift from the source. For what ContextMenu is for, how it composes and what it looks like, see ContextMenu.
ContextMenu
Re-exported from @radix-ui/react-context-menu. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuCheckboxItem
Inherited from @radix-ui/react-context-menu — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuContent
Inherited from @radix-ui/react-context-menu — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuGroup
Re-exported from @radix-ui/react-context-menu. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuItem
React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & { inset?: boolean }
Prop
Type
Also inherited from @radix-ui/react-context-menu — forwarded, not declared here, and accepted alongside the props above. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuLabel
React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & { inset?: boolean }
Prop
Type
Also inherited from @radix-ui/react-context-menu — forwarded, not declared here, and accepted alongside the props above. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuPortal
Re-exported from @radix-ui/react-context-menu. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuRadioGroup
Re-exported from @radix-ui/react-context-menu. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuRadioItem
Inherited from @radix-ui/react-context-menu — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuSeparator
Inherited from @radix-ui/react-context-menu — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuShortcut
A styled <span> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
ContextMenuSub
Re-exported from @radix-ui/react-context-menu. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuSubContent
Inherited from @radix-ui/react-context-menu — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuSubTrigger
React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & { inset?: boolean }
Prop
Type
Also inherited from @radix-ui/react-context-menu — forwarded, not declared here, and accepted alongside the props above. DOM attributes are accepted too and omitted here.
Prop
Type
ContextMenuTrigger
Re-exported from @radix-ui/react-context-menu. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type