Reactolith UI Getting Started Introduction Installation Usage Layout Aspect Ratio Card Resizable Scroll Area Separator Direction Provider Forms Button Button Group Calendar Checkbox Combobox Field Input Input Group Input OTP Label Native Select Radio Group Select Slider Switch Textarea Toggle Toggle Group Data Display Accordion Avatar Badge Carousel Chart Collapsible Item Kbd Table Feedback Alert Empty Progress Skeleton Sonner Spinner Overlay Alert Dialog Context Menu Dialog Dropdown Menu Hover Card Popover Sheet Tooltip Navigation Breadcrumb Command Menubar Navigation Menu Pagination Sidebar Tabs

Combobox

Autocomplete input and command palette with a list of suggestions.

Preview

No framework found.

Usage

<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>

Sub-components

<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>

Props

<ui-combobox>

PropTypeDefaultDescription
openbooleanControlled open state.
valuestringThe selected value.
itemsstring[] | {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>

PropTypeDefaultDescription
placeholderstringPlaceholder text when no value is selected.

<ui-combobox-input>

PropTypeDefaultDescription
placeholderstringInput placeholder text.

<ui-combobox-item>

PropTypeDefaultDescription
valuestringThe 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.