Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA search typeahead that draws the matched part of each title from ranges the server returns and, when nothing matches, offers the server's Did you mean suggestion as a pickable row. Use this when a search box serves misspelled queries.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it for site and catalogue search where the engine knows which characters matched and can propose a corrected query, and people should be one key press from the correction.
Do not use it when matching is done on the client with a fuzzy library. See the fuzzy combobox, which highlights from the library's own ranges.
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 |
|---|---|---|---|
search | (query, { signal }) => Promise<{ results, didYouMean? }> | - | results are { id, title, ranges?: [start, end][] }. |
onValueChange | (result) => void | - | Runs when a result is picked. |
debounceMs | number | 200 | Wait after typing. |
placeholder | string | Search… | Input placeholder. |
<mark> (bold and underlined), and the option's accessible name is the plain title.Did you mean <text>?; choosing it fills the input and searches again.N results, No results and the correction.The pattern ships with a Testing Library test (search-typeahead-did-you-mean.test.tsx) that covers highlighting from ranges, the Did you mean option replacing the query and clamped ranges.