diff --git a/README.md b/README.md index 16d2445f95..93063f5fc2 100644 --- a/README.md +++ b/README.md @@ -199,12 +199,7 @@ npm run test:watch # developer mode, test only * Instantiate a searchbox * @param {String|DOMElement} options.container CSS Selector or DOMElement to insert the widget * @param {String} [options.placeholder='Search here'] Input's placeholder - * @param {Object} [options.cssClasses] CSS classes to add to the wrapping elements: root, input - * @param {String|String[]} [options.cssClasses.root=null] - * @param {String|String[]} [options.cssClasses.input=null] - * @param {Object} [options.templates] Templates to use for the widget - * @param {String|Function} [options.templates.header=''] Header template - * @param {String|Function} [options.templates.footer=''] Footer template + * @param {Object} [options.cssClass] CSS classes to add to the input * @param {boolean} [poweredBy=false] Show a powered by Algolia link below the input * @return {Object} */ @@ -213,6 +208,8 @@ npm run test:watch # developer mode, test only #### Usage ```html + +Or
``` diff --git a/components/SearchBox.js b/components/SearchBox.js deleted file mode 100644 index 7c499659e6..0000000000 --- a/components/SearchBox.js +++ /dev/null @@ -1,68 +0,0 @@ -var React = require('react'); - -var PoweredBy = require('./PoweredBy'); -var bem = require('../lib/utils').bemHelper('as-search-box'); -var cx = require('classnames'); - -class SearchBox extends React.Component { - constructor(props) { - super(props); - this.state = { - value: props.value - }; - } - - componentWillReceiveProps(newProps) { - this.setState({value: newProps.value}); - } - - handleChange(e) { - var newValue = e.target.value; - this.props.setQuery(newValue); - this.props.search(); - this.setState({value: newValue}); - } - - render() { - return ( -