Components / Actions
ContextMenu
A menu opened by right-click, long-press or Shift+F10 on any content.
@ruckc/truss-ui Actions
Import
import { ContextMenu } from '@ruckc/truss-ui'; Playground
API
| Prop | Type | Default | Description |
|---|---|---|---|
items required | MenuEntry[] | — | The items to render. |
children required snippet | Snippet | — | Content, as a Svelte snippet. |
label | string | 'Context menu' | Visible label shown above the control. |