<ui-combobox json-items='[{"value":"react","label":"React"},{"value":"vue","label":"Vue.js"},{"value":"angular","label":"Angular"},{"value":"svelte","label":"Svelte"}]'>
<ui-combobox-input placeholder="Select framework..." showClear></ui-combobox-input>
<ui-combobox-content>
<ui-combobox-empty>No framework found.</ui-combobox-empty>
<ui-combobox-list></ui-combobox-list>
</ui-combobox-content>
</ui-combobox>
<ui-combobox> <ui-combobox-trigger> <ui-combobox-value> <ui-combobox-input> <ui-combobox-content> <ui-combobox-collection> <ui-combobox-list> <ui-combobox-empty> <ui-combobox-group> <ui-combobox-label> <ui-combobox-item> <ui-combobox-separator> <ui-combobox-chips> <ui-combobox-chips-input> <ui-combobox-chip>
<ui-combobox>| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | — | Controlled open state. |
value | string | — | The selected value. |
items | string[] | {value: string, label: string}[] | — | Items for filtering/search. Use json-items in HTML. When provided, ui-combobox-list auto-renders filtered items. |
<ui-combobox-value>| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | — | Placeholder text when no value is selected. |
<ui-combobox-input>| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | — | Input placeholder text. |
<ui-combobox-item>| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | The value of the item. |
All components also accept standard HTML attributes (class, id, style, data-*, aria-*, etc.) which are passed through to the underlying element.