interface / @typed/ui/Menu

State

Popup identity, visibility, and active command focus. Checked preferences and command results belong to the application, not this state.

Learn this UI primitive →

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

Import

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

Signatures

export interface State extends Omit<Composite.State, "orientation"> {
    readonly orientation: "vertical";
    readonly id: string;
    readonly open: boolean;
}

Property: id

Stable id used for collection identity and ARIA relationships.

Property: open

Whether the associated native popover is open.

Property: orientation

Axis used to interpret Arrow-key movement.

Other public imports

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

Source