Skip to content

Vizel API / react/src / VizelSlashMenuItemProps

Interface: VizelSlashMenuItemProps ​

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

Properties ​

className? ​

ts
optional className?: string;

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


id? ​

ts
optional id?: string;

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

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:9

Whether the item is selected


item ​

ts
item: VizelCommandSpec;

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

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


onClick ​

ts
onClick: () => void;

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

Returns ​

void


titleMatches? ​

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

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

Match indices for highlighting (from fuzzy search)

Released under the MIT License.