interface / @typed/ui/index

Combobox.InitialState

Initial Combobox values. value defaults to an empty string, open to false, activeId to null, loop to true, and virtual focus is enabled.

Learn this UI primitive →

Package version
1.0.0-beta.7
Category
Query and popup state
Since
1.0.0
Member of
Combobox

Import

import { Combobox } from "@typed/ui/index";

Access Combobox.InitialState through the imported Combobox export. Its declaration below describes the member.

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export interface InitialState {
    readonly id: string;
    readonly value?: 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.

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