1.0.10 • Published 5 years ago

react-seda-search v1.0.10

Weekly downloads
78
License
MIT
Repository
github
Last release
5 years ago

React SEDA Search Component

Travis npm package

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 string required ID for the algolia project
  • algoliaKey: string API key for Algolia
  • indicies: array list of indicies to search (cities, counties, districts, and/or schools)
  • inputProps: object properties to be passed to the input field
  • onSuggestionSelected: func function to handle selected search suggestion
1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago