Seek Search, animated React component
A round search button that opens into a field as one object: the pill springs wider while the magnifier turns, and a list of local suggestions drops in underneath and filters as you type. Escape, or leaving it empty, folds it back.
- Pro
- Inputs & Controls
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| suggestions | string[] | ["Quarterly report", "Design review notes", …] | Local suggestions shown under the field and filtered as you type. Nothing is fetched. |
| placeholder | string | "Search files" | Placeholder and accessible name of the field. |
| maxLength | number | 64 | Longest query the field accepts; the query is trimmed before filtering. |
| onSelect | (suggestion: string) => void | undefined | Called with a suggestion when it is clicked. |
| autoplay | boolean | false | Opens, types a word, clears and folds back on a loop until the user interacts. |