Gathering detailed insights and metrics for material-ui-search-bar
Gathering detailed insights and metrics for material-ui-search-bar
Gathering detailed insights and metrics for material-ui-search-bar
Gathering detailed insights and metrics for material-ui-search-bar
npm install material-ui-search-bar
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
261 Stars
107 Commits
81 Forks
8 Watchers
28 Branches
18 Contributors
Updated on Feb 15, 2025
Latest Version
1.0.1
Package Id
material-ui-search-bar@1.0.1
Unpacked Size
49.59 kB
Size
30.17 kB
File Count
14
NPM Version
8.1.4
Node Version
16.13.0
Published on
Oct 24, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
3
See this component in action
1npm i --save material-ui-search-bar
Note: If you're still using Material-UI v3, please install v0.x of the search bar using npm i --save material-ui-search-bar@beta
The SearchBar
is a controlled input, meaning that you need to keep the input state. This allows for much flexibility, e.g. you can change and clear the search input just by changing its props.
1import SearchBar from "material-ui-search-bar"; 2// *snip* 3 4return ( 5 <SearchBar 6 value={this.state.value} 7 onChange={(newValue) => this.setState({ value: newValue })} 8 onRequestSearch={() => doSomethingWith(this.state.value)} 9 /> 10);
Name | Type | Default | Description |
---|---|---|---|
cancelOnEscape | bool | Whether to clear search on escape | |
classes* | object | Override or extend the styles applied to the component. | |
className | string | '' | Custom top-level class |
closeIcon | node | <ClearIcon style={{ color: grey[500] }} /> | Override the close icon. |
disabled | bool | false | Disables text field. |
onCancelSearch | func | Fired when the search is cancelled. | |
onChange | func | Fired when the text value changes. | |
onRequestSearch | func | Fired when the search icon is clicked. | |
placeholder | string | 'Search' | Sets placeholder text for the embedded text field. |
searchIcon | node | <SearchIcon style={{ color: grey[500] }} /> | Override the search icon. |
style | object | null | Override the inline-styles of the root element. |
value | string | '' | The value of the text field. |
* required property
Any other properties supplied will be spread to the underlying Input
component.
The files included in this repository are licensed under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 7/30 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
102 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More