Elements Context Menu
Back to Elements

Context Menu

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

ContextMenu.CheckboxItem

Right-click context menu overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
checked bind: boolean false
indeterminate bind: boolean false
class as className string —
children as childrenProp — —
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.

ContextMenu.Content

Right-click context menu overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
portalProps — —
class as className string —
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.

ContextMenu.Group

Right-click context menu overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.

ContextMenu.GroupHeading

Right-click context menu overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string —
inset — —
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.

ContextMenu.Item

Right-click context menu overlay with dark mode support.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string —
inset — —
variant string "default"
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.

ContextMenu.Label

Right-click context menu overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string —
inset — —
children Snippet —
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.

ContextMenu.RadioGroup

Right-click context menu overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
value bind: string ""
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.

ContextMenu.RadioItem

Right-click context menu overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string —
children as childrenProp — —
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.

ContextMenu.Separator

Right-click context menu overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string —
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.

ContextMenu.Shortcut

Right-click context menu overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string —
children Snippet —
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.

ContextMenu.SubContent

Right-click context menu overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string —
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.

ContextMenu.SubTrigger

Right-click context menu overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string —
inset — —
children Snippet —
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.

ContextMenu.Trigger

Right-click context menu overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
...restProps Record<string, unknown> — Remaining attributes, spread onto the underlying element.