Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA search field that shows recent searches when focused and empty, each with a remove button, a Clear all action and keyboard selection that fills and runs the search. Use this when people repeat searches on a phone and you can store the last few on the device.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
Use it when people repeat searches on a phone and you can store the last few on the device.
Do not use it for suggestions that come from a server (use a combobox) or when searches are sensitive and should not be kept.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
recent | string[] | required | Recent queries, newest first. |
onSearch | (query: string) => void | required | Called when a query is run. |
onRemove | (query: string) => void | required | Remove one. |
onClear | () => void | required | Remove all. |
The pattern ships with a Testing Library test (recent-searches-list.test.tsx) that drives it through roles and the keyboard.