Inputs
Combo box
Filter a list as you type and choose a matching value.
Anatomy
- Field label
- Search input
- Suggestion list
- Highlighted option
Configuration
Search states
Type to filter fonts. Use the arrow keys to move through results and Enter to select.
The chosen font appears in the field when the list closes.
No fonts found.
Keep the query visible so the user can revise it.
Design tokens used
| Category | Token | Value | Where it’s used |
|---|---|---|---|
| Colour | --cc-foreground | — | Field label and available fonts |
--cc-muted-foreground | — | No-results text | |
--cc-subtle-foreground | — | Search placeholder | |
--cc-surface-elevated | — | Suggestion panel background | |
--cc-border | — | Suggestion panel outline | |
--cc-primary | — | Editable field border on focus | |
--cc-primary-soft | — | Highlighted and hovered results | |
--cc-primary-soft-foreground | — | Highlighted result text and icon | |
--cc-field-background | — | Editable field background | |
--cc-field-foreground | — | Entered value | |
--cc-field-border | — | Field border | |
--cc-field-hover-border | — | Editable field border on hover | |
--cc-focus-ring | — | Keyboard focus ring |