Gathering detailed insights and metrics for material-ui-search
Gathering detailed insights and metrics for material-ui-search
Gathering detailed insights and metrics for material-ui-search
Gathering detailed insights and metrics for material-ui-search
npm install material-ui-search
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (95.83%)
HTML (2.9%)
CSS (1.27%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
8 Commits
1 Watchers
19 Branches
1 Contributors
Updated on Mar 08, 2023
Latest Version
1.0.0
Package Id
material-ui-search@1.0.0
Unpacked Size
66.24 kB
Size
10.81 kB
File Count
6
NPM Version
6.11.3
Node Version
10.16.3
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
8
27
material ui search bar
1npm install --save material-ui-search
The first step is to add the reducer to your rootReducer when creating Redux's store.
1import { combineReducers } from 'redux' 2import { searchbarReducer as searchbar } from 'material-ui-search' 3 4const rootReducer = combineReducers({ 5 // other reducers... 6 searchbar 7}) 8 9export default rootReducer
The second step is to add the SearchbarProvider
component somewhere in your app.
1import React from 'react' 2import ReactDOM from 'react-dom' 3import { createStore } from 'redux' 4import { Provider } from 'react-redux' 5import { SearchbarProvider } from 'material-ui-search' 6import App from './App' // your entry page 7import reducer from './reducers' // root reduer 8 9const store = createStore(reducer) 10 11ReactDOM.render( 12 <Provider store={store}> 13 <SearchbarProvider> 14 <App /> 15 </SearchbarProvider> 16 </Provider>, 17 document.getElementById('root') 18)
Set the searchbar data
1import React from 'react' 2import { withSearchbar } from 'material-ui-search' 3import { SearchBar } from 'material-ui-search' 4 5class MyComponent extends React.Component { 6 7 onChangeSearch(event) { 8 const { searchbar } = this.props 9 searchbar.search(event); 10 } 11 12 render () { 13 <div> 14 <SearchBar 15 onChange={(e) => { this.onChangeSearch(e) }} 16 onRequestSearch={(e) => { this.onChangeSearch(e) }} 17 onCancelSearch={(e) => { this.onChangeSearch(e) }} 18 style={{ 19 margin: '0 auto', 20 maxWidth: 800 21 }} 22 /> 23 </div> 24 } 25} 26 27MyComponent = withSearchbar()(MyComponent) 28export default MyComponent
Access the search data
1import React, { Component } from 'react' 2import { withSearchbar } from 'material-ui-search' 3 4class GetComponent extends React.Component { 5 render() { 6 const { searchQuery } = this.props.searchbar 7 return ( 8 <React.Fragment> 9 <h3>{searchQuery}</h3> 10 </React.Fragment> 11 ) 12 } 13} 14 15GetComponent = withSearchbar()(GetComponent) 16export default GetComponent
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
135 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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