Combobox
BetaBatch B. Type to filter a list, then pick one or several options.
When to use
Use for long lists where typing helps people find an option fast.
When not to use
For short lists, use Select or Radio.
Anatomy
Cedar Packaging
Delta Components
- Label
- Input
- Chips for chosen options (multiple only), each with a remove button
- Clear button (single only)
- Button that opens the list
- List with check marks, a loading message or a no-results message
- Help text and error
Variants
| Variant | How |
|---|---|
| Single | Default. One choice, with a Clear button. |
| Multiple | multiple. Choices show as chips that look like Tag. Backspace removes the last one. |
| Server search | filter={null}, onInputValueChange and loading. The list shows "Loading results…" while waiting. |
States
Pictures of each state. Use the live example on the Code tab to try the component.
| Default | Hover | Focus-visible | Disabled | Read-only | Invalid | |
|---|---|---|---|---|---|---|
| single | Choose a supplier. | |||||
| multiple | Cedar Packaging | Cedar Packaging | Cedar Packaging | Cedar Packaging | Cedar Packaging | Cedar Packaging Choose a supplier. |
Open, loading and no results appear in the list. Try them in the live example on the Code tab. Type in Supplier to filter. Type letters that match nothing to see the no-results message. Type in Reviewer to see the loading message.