interface / @typed/ui/Menu

InitialState

Initial Menu values. The caller supplies id; open defaults false, activeId null, loop true, and orientation vertical.

Learn this UI primitive →

Package version
1.0.0-beta.7
Category
Popup state
Since
1.0.0

Import

import { InitialState } from "@typed/ui/Menu";

Signatures

export interface InitialState {
    readonly id: string;
    readonly open?: boolean;
    readonly activeId?: string | null;
    readonly loop?: boolean;
}

Property: activeId

Id currently active for keyboard navigation; null means no active item.

Property: id

Stable id used for collection identity and ARIA relationships.

Property: loop

Whether movement wraps between the first and last enabled items.

Property: open

Whether the associated native popover is open.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source