Search
Specialized text input with magnifying glass icon and clear button. Carbon-spec.
primitives-search--defaultOpen all variants →
When to use
- Any input that filters / queries a list — top-of-list search bars, command palettes, autocomplete entry points.
- The clear button auto-shows when there's a value; pair with
onClearto reset state.
When not to use
- Plain single-line text → use `TextInput`.
- Searchable + selectable list of options → use the
ComboBoxpattern. - Spotlight-style global command surface → use the
CommandPalettepattern.