react-search
react-search copied to clipboard
UI widget for adding semantic search to your React UI in just a few lines of code
You might do a search and then close the modal but then want to open it back up to see the results again. It would be convenient if you could...
To enable support for Vectara's multiple reranker options, we need to allow ReactSearch to accept a rerankerId option.
To repro: * Issue a search and get back search results * Reduce browser window height until scroll bar appears in search results * Attempt to use mouse scroll to...
Per @mrderyk, `react-icons` accounts for close to 75% of our bundle size. We can find a way to selectively include specific icons or find a different library.
The component needs to handle errors and surface them to the user. Looks like right now the code doesn't anticipate them: https://github.com/vectara/react-search/blob/d6bac29c1843f62770a35e0df0a4a14dd1621f30/src/index.tsx#L76-L97
By using relative links we can ensure they stay up-to-date if the images change. By specifying widths, we can ensure the images don't look too large. Currently, links look like...
This will be useful for any device that lacks an “Escape” button, e.g. a touchscreen. This also will fix a critical bug on smaller touchscreens, because on those devices the...
We should consider the user journey from using this component in prototypes (API keys) to using it in production (OAuth).
This hook currently returns `{ fetchSearchResults, isLoading }`. I noticed two things: * We're using two different verbs to describe the same action: "fetch" and "load" * The action is...
@mrderyk You were right -- it would be nice to be able to customize this button's text! 😅 