Skip to content

Vizel API / react/src / VizelSlashMenuItemProps

Interface: VizelSlashMenuItemProps

Defined in: packages/react/src/components/VizelSlashMenuItem.tsx:4

Properties

className?

ts
optional className?: string;

Defined in: packages/react/src/components/VizelSlashMenuItem.tsx:10


id?

ts
optional id?: string;

Defined in: packages/react/src/components/VizelSlashMenuItem.tsx:19

Stable id for the role="option" element. The listbox root's aria-activedescendant points at this id when the item is the active selection, matching the WAI-ARIA combobox pattern. The spec always supplies the id for a rendered item; the optional undefined keeps the prop assignable from the optional spec field under exactOptionalPropertyTypes.


isSelected?

ts
optional isSelected?: boolean;

Defined in: packages/react/src/components/VizelSlashMenuItem.tsx:8

Whether the item is selected


item

ts
item: VizelCommandSpec;

Defined in: packages/react/src/components/VizelSlashMenuItem.tsx:6

The command spec to display (label, description, icon, shortcut).


onClick

ts
onClick: () => void;

Defined in: packages/react/src/components/VizelSlashMenuItem.tsx:9

Returns

void


titleMatches?

ts
optional titleMatches?: [number, number][];

Defined in: packages/react/src/components/VizelSlashMenuItem.tsx:21

Match indices for highlighting (from fuzzy search)

Released under the MIT License.