ReactSearchAutocomplete
A <ReactSearchAutocomplete>
is a fully customizable search box where the user can type text and filter the results. It relies on Fuse.js v6.4.4 for the fuzzy search. Check out their website to see the options (you can pass them to this component).
Release 5.1.0
- added
onHover
prop that returns the result the user is hovering - added
clearIcon
prop to display a clear icon in the search box - it's now possible to style the search icon and the clear icon margins by using the styling prop if the default values are not optimal:
Multiple search boxes on the same website
If you are using multiple search boxes set useCaching
to false
(default is false
); the implementation for multiple cached search boxes is work in progress.
Installing
With React 17
Exports
The default export is <ReactSearchAutocomplete>
.
To use it: