Skip to main content
Browse documentation

Input search

[type="search"] gets a search icon and, in the default build with classes enabled, a fully rounded (--cirth-radius-pill) shape.

Live UI · Default buildAuthentic Cirth · shell overrides declared in source
Show HTML
<label>
  Search
  <input type="search" placeholder="Search the docs…">
</label>
<input type="search" placeholder="Search…">

When combined with aria-invalid, the search icon and the valid/invalid icon are shown side by side (two background images) instead of the invalid icon replacing the search icon. In [dir="rtl"], the icon(s) mirror to the opposite side. Pair it with role="search" to add a submit button alongside the field.

Search documentation

Type at least two characters to search.