Description
material-ui-search-bar is a React search bar component in the Material Design style. It is a controlled input, which means your component keeps the search text in its own state. That gives you control over the value, so you can change or clear the search just by changing its props. The SearchBar accepts a set of properties: value, placeholder, disabled, custom search and close icons, and a className and style for the root element. It has callbacks for when the text changes, when the search icon is clicked, and when a search is cancelled. It can also clear the search when Escape is pressed. Any other properties you supply are spread to the underlying Material-UI Input component, and a classes property lets you override the component's styles. The README notes that if you still use Material-UI v3, you should install version 0.x of the search bar with the beta tag. The component is installed from npm and is released under the MIT license. The repository lives on GitHub under TeamWertarbyte, and the README links to a demo of the component.…
Highlights
- Material-style search bar for React
- Controlled input with value and change callbacks
- Search icon and cancel callbacks
- Clear on Escape option
- Custom icons and style overrides
Ratings & Reviews
No ratings yet
Be the first to rate material-ui-search-bar.
People also visit
material-ui-search-bar FAQ
What is material-ui-search-bar?
A Material-style search bar component for React, built to fit Material-UI.
How do I install it?
Install it from npm. If you still use Material-UI v3, install the 0.x version with the beta tag, as the README shows.
Is it a controlled component?
Yes. You keep the input state in your own component and pass it in as value, so you can change or clear the search from props.
Can I customize it?
Yes. You can override the search and close icons, the class names and the inline styles, and other props are passed to the underlying Input component.
What license is it under?
The files are released under the MIT license.
What are the best material-ui-search-bar alternatives?
Popular alternatives to material-ui-search-bar include react-search-input, mdi-material-ui and @material-ui/system. See all material-ui-search-bar alternatives



















