Combobox
Text input with autocomplete dropdown.
Generado a partir del código fuente público del paquete.
API
ComboboxContentPropsinterfaz
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Propiedades
class?stringref?(el: HTMLDivElement) => voidstyle?string | CSSProperties
hijos: Element
ComboboxInputPropsinterfaz
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Propiedades
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
ComboboxItemPropsinterfaz
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Propiedades
disabled?boolean— Disabled state.textValue?string— Text value for matching. Defaults to value.valuestring— Unique value for this item.
hijos: Element
ComboboxItemTextPropsinterfaz
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
hijos: Element
ComboboxRootPropsinterfaz
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Propiedades
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.
hijos: Element
Contentcomponente
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Content(props: ComboboxContentProps): Element
Propiedades
class?stringref?(el: HTMLDivElement) => voidstyle?string | CSSProperties
hijos: Element
Inputcomponente
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Input(props: ComboboxInputProps): Element
Propiedades
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
Itemcomponente
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Item(props: ComboboxItemProps): Element
Propiedades
disabled?boolean— Disabled state.textValue?string— Text value for matching. Defaults to value.valuestring— Unique value for this item.
hijos: Element
ItemTextcomponente
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
ItemText(props: ComboboxItemTextProps): Element
hijos: Element
Rootcomponente
@solidiom/combobox — Headless autocomplete combobox primitive. Parts: Root, Input, Content, Item, ItemText.
Root(props: ComboboxRootProps): Element
Propiedades
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.
hijos: Element