Founding price: $35, then $79.99 after 23:59 UTC on 4 November, then $79.99
Get ProA search field that lists recent searches when empty and recents then suggestions while typing, with Delete to forget one, Clear history and optional localStorage.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
Use it for the main search of an app where people repeat searches. Use Autocomplete when there is no history to keep.
| Prop | Type | Default | Description |
|---|---|---|---|
suggestions | string[] | [] | Suggestions shown for the typed text. |
onSubmit | (query: string) => void | - | Runs on Enter or when an entry is picked. |
history / defaultHistory | string[] | [] | Recent searches, controlled or initial. |
onHistoryChange | (history: string[]) => void | - | Runs when history changes. |
storageKey | string | - | Persist uncontrolled history in localStorage under this key. |
maxHistory | number | 8 | Most recent searches kept. |
placeholder | string | Search… | Input placeholder. |
Entries are options in labelled groups (Recent searches, Suggestions). The × button on a recent row is removed from the tab order and hidden from assistive technology because it duplicates the Delete key, which is announced when the list opens. Clear history is a button inside the popup.