# Search input

Text entry for filtering a list. Escape clears.

Import from `@a31labs/rax/search-input`.

## Usage

```tsx
<SearchInput aria-label="Search" value={q} onValueChange={setQ} loading={pending} />
```

## Rules

Props: `value`, `onValueChange`, `loading`, plus native input props. `className` goes to the wrapper; `ref`, `id` and `aria-*` go to the input, so it works inside Field. Looks like Input with a leading search icon in ink-3. The browser's own clear button is hidden. A ghost "Clear search" IconButton appears only when there is a value, and clicking it puts focus back in the input. Escape clears a non-empty value without closing a surrounding dialog; on an empty value Escape works as usual. `loading` replaces the icon with a Spinner after the usual 100ms delay. FilterBar uses it.

Page: https://rax.a31.at/components/search-input
