Vizel API / core/src / VizelMenuItemAttrs
Interface: VizelMenuItemAttrs
Defined in: packages/core/src/builders/types.ts:36
ARIA attributes accepted on each item element inside the menu.
Properties
aria-disabled?
optional aria-disabled?: boolean;Defined in: packages/core/src/builders/types.ts:44
Whether this item is disabled (skipped by keyboard navigation, non-activatable).
aria-expanded?
optional aria-expanded?: boolean;Defined in: packages/core/src/builders/types.ts:54
Whether the popup associated with this item is currently open. Set together with aria-haspopup.
aria-haspopup?
optional aria-haspopup?: "menu" | "true";Defined in: packages/core/src/builders/types.ts:49
Marks a menuitem that opens a popup (submenu). The value names the popup's role; for nested menus this is typically "menu".
aria-selected?
optional aria-selected?: boolean;Defined in: packages/core/src/builders/types.ts:39
Whether this item is the active selection.
id?
optional id?: string;Defined in: packages/core/src/builders/types.ts:56
Stable per-option id matching the root's aria-activedescendant.
role?
optional role?: "option" | "menuitem";Defined in: packages/core/src/builders/types.ts:37
tabIndex?
optional tabIndex?: number;Defined in: packages/core/src/builders/types.ts:58
Item tabIndex; usually -1 so the root owns keyboard focus.