Combobox
Text input with autocomplete dropdown.
Generated from the package's public source.
API
ComboboxContentPropsinterface
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Props
class?stringref?(el: HTMLDivElement) => voidstyle?string | CSSProperties
children: Element
ComboboxInputPropsinterface
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Props
class?stringonFilter?(value: string) => void— Called on each input change to trigger filtering.placeholder?string— Placeholder text when empty.ref?(el: HTMLInputElement) => voidstyle?string | CSSProperties
ComboboxItemPropsinterface
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Props
disabled?boolean— Disabled state.textValue?string— Text value for matching. Defaults to value.valuestring— Unique value for this item.
children: Element
ComboboxItemTextPropsinterface
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
children: Element
ComboboxRootPropsinterface
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Props
class?stringdefaultInputValue?stringdefaultOpen?booleandefaultSelectedValue?stringinputValue?Accessor<string>— Controlled input text value.onInputValueChange?(value: string) => voidonOpenChange?(open: boolean, details: ChangeDetails<DisclosureReason>) => voidonSelectedValueChange?(value: string, details: ChangeDetails<ComboboxReason>) => voidopen?Accessor<boolean>— Controlled open state.selectedValue?Accessor<string | undefined>— Controlled selected value.
children: Element
Contentcomponent
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Content(props: ComboboxContentProps): Element
Props
class?stringref?(el: HTMLDivElement) => voidstyle?string | CSSProperties
children: Element
Inputcomponent
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Input(props: ComboboxInputProps): Element
Props
class?stringonFilter?(value: string) => void— Called on each input change to trigger filtering.placeholder?string— Placeholder text when empty.ref?(el: HTMLInputElement) => voidstyle?string | CSSProperties
Itemcomponent
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Item(props: ComboboxItemProps): Element
Props
disabled?boolean— Disabled state.textValue?string— Text value for matching. Defaults to value.valuestring— Unique value for this item.
children: Element
ItemTextcomponent
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
ItemText(props: ComboboxItemTextProps): Element
children: Element
Rootcomponent
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Root(props: ComboboxRootProps): Element
Props
class?stringdefaultInputValue?stringdefaultOpen?booleandefaultSelectedValue?stringinputValue?Accessor<string>— Controlled input text value.onInputValueChange?(value: string) => voidonOpenChange?(open: boolean, details: ChangeDetails<DisclosureReason>) => voidonSelectedValueChange?(value: string, details: ChangeDetails<ComboboxReason>) => voidopen?Accessor<boolean>— Controlled open state.selectedValue?Accessor<string | undefined>— Controlled selected value.
children: Element