metonym / svelte-typeahead

Accessible, fuzzy search typeahead component
https://metonym.github.io/svelte-typeahead
MIT License
222 stars 18 forks source link

Custom search function with async support #81

Open winstonDeGreef opened 9 months ago

winstonDeGreef commented 9 months ago

As title says, a prop like searchFunc that can return an array of strings, or an array of objects with {title: string, value: string, highlights?: {start: number, stop: number}[]}, or that but as a promise. (Removes the need to supply data)

This also requires a getLabel function for two way binding.

Willing to implement it myself.