Skip to content

Commit

Permalink
docs: add sample searchBox doc
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Aug 3, 2015
1 parent 3ef55a3 commit 6c75a05
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,21 @@ npm test # test and lint
npm run test:watch # developer mode, test only
npm run test:coverage
```

## Available widgets

### searchBox

```html
<input id="search-box" />
```

```js
instant.addWidget(
instantsearch.widgets.searchBox({
container: '#search-box',
cssClass: 'form-control',
placeholder: 'Search for products'
})
);
```

0 comments on commit 6c75a05

Please sign in to comment.