Import
import { Listbox } from "@typed/ui";This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.
Signatures
export * as Listbox from "./Listbox.js";Members
Listbox.InitialStateInitial Listbox values. value and activeId default to null, loop defaults to true, and roving focus is used.
Listbox.OptionRenders and optionally registers an option; focus or click selects it unless disabled.
Listbox.OptionOptionsInputs accepted by Listbox.Option in addition to the shared DOM host options.
Listbox.RootRenders the listbox root, initializes selection on focus, and handles vertical movement and typeahead in DOM order.
Listbox.RootOptionsInputs accepted by Listbox.Root in addition to the shared DOM host options.
Listbox.StateThe committed single value and the option currently owning keyboard focus. Normal option focus and movement update both values; the DOM ID and saved value may differ.
Listbox.StateSchemaEffect Schema used by makeState to encode, decode, and hydrate Listbox state.
Listbox.makeCollectionCreates a scoped Collection for Listbox items.
Listbox.makeStateCreates hydrated Listbox state. value and activeId default to null, loop defaults to true, and roving focus is used.
Listbox.moveMoves through the registered options, synchronizes value when the target has one, then focuses and scrolls the active option.
Listbox.selectSets both activeId and selected value in one update.
Other public imports
These import paths expose the same declaration. Each page retains its own public name and signature.