# SearchBar

Search bar input component

```js
import SearchBar from 'deepsight-react-components/SearchBar';

return <SearchBar ... />
```

## Props

| prop          | type       | required | default  | description                                                                         |
| :------------ | :--------- | :------: | :------- | :---------------------------------------------------------------------------------- |
| `placeholder` | `string`   | `false`  | `search` | When set, changes the input placeholder                                             |
| `value`       | `string`   | `false`  | `null`   | When set, allows to prefill the input with a value on creation                      |
| `setValue`    | `function` | `true`   |          | The react state setter from the parent's component of the value to alter            |
| `width`       | `number`   | `false`  | `320`    | When set, overwrites the width of the input according to the provided value (in px) |
