Skip to content

Vizel API / core/src / VizelMenuSpec

Interface: VizelMenuSpec<TData>

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

The complete menu spec: root container attrs + sections.

Empty menus (e.g. "no results" state) are represented by an empty sections array; the framework component renders an empty-state slot.

Type Parameters

Type Parameter
TData

Properties

root

ts
root: VizelMenuRootAttrs;

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

ARIA attrs for the root container.


sections

ts
sections: readonly VizelMenuSectionSpec<TData>[];

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

Sections (groups) of items. Empty when there are no items.

Released under the MIT License.