Skip to content

SearchInput

Search field with a clear button that appears only when there is something to clear.

Example

<SearchInput id="docs-search" label="Search docs" />

Sizes

<SearchInput id="search-sm" label="Small" size="sm" />
<SearchInput id="search-lg" label="Large" size="lg" />

Props

PropTypeDefaultDescription
placeholderstringSearchHint text.
Label is visually hidden by default; the placeholder carries the visible cue.

Accessibility