Skip to main content

Input - Search

A search input is a single-line text field with iconography and behaviors to support search functionality.

BetaInput replaces the search type of input from v1.

Code documentation

Web

Anatomy

The search input component is made up of 13 elements.

Anatomy diagram numbering 13 elements of an input.
  1. Label
  2. Optional indicator
  3. Right slot
  4. Counter
  5. Clear button
  6. Value
  7. Search icon
  8. Helper text
  9. Required indicator
  10. Current value length
  11. Max value length
  12. Counter divider
  13. Error text

Variants

Input search extends the input component which allows for the use of its properties, events, slots, methods, and styles. Refer to the input documentation for detailed information on these features.

The following variants are unique features to input search.

Search icon

An icon is included within the left slot to visually describe the input as a search input. A default icon is supplied, but can be overridden with a custom icon if required. When the slot is hidden, the input text expands to fill the available space.

A magnifying glass icon is displayed to the left of a sample value to indicate the input is a search input.