UI Headless Runtime API - v1.0.0
    Preparing search index...

    Interface ListboxSnapshot

    Immutable Listbox snapshot.

    interface ListboxSnapshot {
        activeId: string | null;
        ariaMultiselectable: boolean;
        controlled: boolean;
        id: string;
        options: readonly ListboxOptionSnapshot[];
        role: "listbox";
        selectedValues: readonly string[];
    }
    Index

    Properties

    activeId: string | null

    ID exposed through aria-activedescendant.

    ariaMultiselectable: boolean

    Whether multiple values may be selected.

    controlled: boolean

    Whether selection is consumer-owned.

    id: string

    Stable listbox ID used by aria-controls.

    options: readonly ListboxOptionSnapshot[]

    Ordered option semantics.

    role: "listbox"

    Listbox role for consumer markup.

    selectedValues: readonly string[]

    Ordered selected consumer values.