1.0.10 • Published 6 years ago
react-seda-search v1.0.10
React SEDA Search Component
React component for searching schools, districts, counties, and cities
Usage
Pass the Algolia configuration to the component, along with the indicies to search and an event handler to handle when an option is selected.
<SedaSearch
algoliaId='{ALGOLIA_ID}'
algoliaKey='{ALGOLIA_KEY}'
onSuggestionSelected={console.log}
indices={['cities', 'counties', 'districts', 'schools']}
inputProps={{
placeholder: 'Search seda data..'
}}
/>Props
The following props can be passed to the search component:
- algoliaId
stringrequired ID for the algolia project - algoliaKey:
stringAPI key for Algolia - indicies:
arraylist of indicies to search (cities, counties, districts, and/or schools) - inputProps:
objectproperties to be passed to the input field - onSuggestionSelected:
funcfunction to handle selected search suggestion

