Skip to content

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?

ts
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?

ts
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?

ts
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?

ts
optional aria-selected?: boolean;

Defined in: packages/core/src/builders/types.ts:39

Whether this item is the active selection.


id?

ts
optional id?: string;

Defined in: packages/core/src/builders/types.ts:56

Stable per-option id matching the root's aria-activedescendant.


role?

ts
optional role?: "option" | "menuitem";

Defined in: packages/core/src/builders/types.ts:37


tabIndex?

ts
optional tabIndex?: number;

Defined in: packages/core/src/builders/types.ts:58

Item tabIndex; usually -1 so the root owns keyboard focus.

Released under the MIT License.