interface / @typed/ui/Listbox

InitialState

Initial Listbox values. value and activeId default to null, loop defaults to true, and roving focus is used.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Selection and focus
Since
1.0.0

Import

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

Signatures

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

Property: activeId

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

Property: loop

Whether movement wraps between the first and last enabled items.

Property: value

Current semantic value selected or edited by the widget.

Other public imports

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

Source