Components › Components
Combobox
An input that filters a list as you type: one pick or several, options from the server, and a change the parent can cancel.
Styled: Combobox on ui.clarusjs.com, ready to copy, in plain CSS or Tailwind.
- Apple
- Banana
- Cherry
Fruit: none
tscl
@import uiCombobox from '@clarusjs/ui-primitives/combobox.tscl'
<uiCombobox [id]="'fruit'" [label]="'Fruit'" [options]="fruits" [(value)]="form.fruit" />multiplewith[(values)];srcfor options from the server. Sends(change), which a parent can cancel. See Forms.- Styling: parts
combobox,label,control,chip,input,listbox,option(data-highlightedon the active one),status.
From @clarusjs/ui-primitives, styled by @clarusjs/ui: @import '@clarusjs/ui/ui.css' once, and change the look with its --ui- tokens (--ui-accent, --ui-radius, --ui-font…). Without it, the part is unstyled and works the same.