All Projects → revolunet → algolia-react-input

revolunet / algolia-react-input

Licence: MIT license
A simple react input component to query your algolia index

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

algolia-react-input

npm license github-issues

nodei.co

A simple react input component to query your algolia index

Demo : http://revolunet.github.io/algolia-react-input/#/example1

Usage

const algoliasearch = require('algoliasearch');
const algoliaClient = algoliasearch('APPLICATION_ID', 'SEARCH_ONLY_API_KEY');
const algoliaOptions = {
  hitsPerPage: 200
};

return <AlgoliaInput
  client={ algoliaClient }
  index='Products'
  options= { algoliaOptions }
  onResults={ this.onResults }
  onError={ this.onError }
  placeholder='Product Search...'
/>;

See complete example in ./docs/AlgoliaExample.js

Contributing

Contributions welcome; Please submit all pull requests the against master branch. If your pull request contains JavaScript patches or features, you should include relevant unit tests. Thanks!

Author

License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].