MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / ContextMenuItem

Interface ContextMenuItem

packages/app-core/src/components/ContextMenu.tsx:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import { createPortal } from 'react-dom'
3
4export interface ContextMenuItem {
5 kind?: 'item' | 'separator'
6 label?: string
7 /** Optional SVG icon to the left of the label. */
8 icon?: JSX.Element
9 /** Right-aligned hint, e.g. a keyboard shortcut. */
10 hint?: string
11 /** Displayed in muted red (used for destructive actions). */
12 danger?: boolean
13 disabled?: boolean
14 onSelect?: () => void | Promise<void>
15}
16
17interface Props {
18 x: number

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected