Listbox
Single or multi-select list of options.
Generado a partir del código fuente público del paquete.
API
Itemcomponente
@solidiom/listbox — Headless listbox primitive with selection and keyboard navigation. Parts: Root, Item.
Item(props: ListboxItemProps): Element
Propiedades
disabled?boolean— Disabled state.textValue?string— Text for typeahead matching. Defaults to value.valuestring— Unique value for this item.
hijos: Element
ListboxItemPropsinterfaz
Props for a listbox item.
Propiedades
disabled?boolean— Disabled state.textValue?string— Text for typeahead matching. Defaults to value.valuestring— Unique value for this item.
hijos: Element
ListboxReasontipo
ListboxRootPropsinterfaz
Props for the listbox root element.
Propiedades
aria-label?string— Accessible name for the listbox.class?stringdefaultValue?string[]— Default value (uncontrolled).disabled?Accessor<boolean>— Disabled state.loop?boolean— Whether navigation loops. Default: true.onValueChange?(value: string[], details: ChangeDetails<ListboxReason>) => void— Called when value change is requested.orientation?"horizontal" | "vertical"— Orientation for keyboard navigation. Default: "vertical".ref?(el: HTMLDivElement) => voidselectionMode?ListboxSelectionMode— Selection mode. Default: "single".style?string | CSSPropertiesvalue?Accessor<string[]>— Controlled value.
hijos: Element
ListboxSelectionModetipo
Rootcomponente
@solidiom/listbox — Headless listbox primitive with selection and keyboard navigation. Parts: Root, Item.
Root(props: ListboxRootProps): Element
Propiedades
aria-label?string— Accessible name for the listbox.class?stringdefaultValue?string[]— Default value (uncontrolled).disabled?Accessor<boolean>— Disabled state.loop?boolean— Whether navigation loops. Default: true.onValueChange?(value: string[], details: ChangeDetails<ListboxReason>) => void— Called when value change is requested.orientation?"horizontal" | "vertical"— Orientation for keyboard navigation. Default: "vertical".ref?(el: HTMLDivElement) => voidselectionMode?ListboxSelectionMode— Selection mode. Default: "single".style?string | CSSPropertiesvalue?Accessor<string[]>— Controlled value.
hijos: Element