Skip to content

Vizel API / core/src / VizelMenuSectionSpec

Interface: VizelMenuSectionSpec<TData>

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

A group of items rendered together, optionally preceded by a header.

For ungrouped menus (e.g. mention suggestions), the spec carries a single section with no header.

Type Parameters

Type Parameter
TData

Properties

ts
optional header?: object;

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

Group header label (omitted for ungrouped menus).

label

ts
label: string;

items

ts
items: readonly VizelMenuItemSpec<TData>[];

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

Items in this section.


key

ts
key: string;

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

Stable key (used as iteration key for the section element).

Released under the MIT License.