- text: string - the default string to search
- onChange: (text) => () - the function fired every time the input text changes.
- width: number - width of the search box
- height: number - height of the search box
This Component uses FontAwesome icon. So make sure your project has that included.
npm install font-awesome
and import the css in your root component or include it in index.html
import 'font-awesome/css/font-awesome.css';