Gathering detailed insights and metrics for react-select-material-ui
Gathering detailed insights and metrics for react-select-material-ui
Gathering detailed insights and metrics for react-select-material-ui
Gathering detailed insights and metrics for react-select-material-ui
select-timezone-material-ui
It allows you to select one of the timezones defined by Moment.Timezone from a material-ui like dropdown component
react-material-time-picker
TimePicker is a user interface component that allows the user to easily select a specific time. It provides an analog clock interface that is easy to use and intuitive. TimePicker can be easily integrated into other user interface components, making it a
@appgeist/react-select-material-ui
An outlined Material-UI input component based on react-select
react-timezone-map-select
react component which lets you select a timezone on world map
A react SELECT component based on react-select and looking like a material-ui component
npm install react-select-material-ui
Typescript
Module System
61.9
Supply Chain
84.8
Quality
74.9
Maintenance
100
Vulnerability
99.3
License
TypeScript (99.49%)
JavaScript (0.51%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
73 Stars
111 Commits
18 Forks
3 Branches
1 Contributors
Updated on Apr 07, 2025
Latest Version
9.3.1
Package Id
react-select-material-ui@9.3.1
Unpacked Size
62.05 kB
Size
13.26 kB
File Count
22
Published on
Dec 10, 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
A react SELECT component based on react-select and looking like a material-ui component
You can access the storybook for this component here.
The component accepts the props defined bellow in the table plus all props defined for BaseTextFieldProps except InputProps, inputProps and variant (as there is no input).
Name | Type | Required | Default | Description |
---|---|---|---|---|
defaultValue | string | no | undefined | The default value for a single select* |
defaultValues | string[] | no | undefined | The default value for a multiple select* |
id | string | no | undefined | The id assigned to the input field and referenced by label |
onChange | (value: string | string[], SelectOption | SelectOption[] | undefined) => void | yes | - | The callback function called when the option is changed |
options | string[] | SelectOption[] | yes | - | The selectable options |
SelectProps | SelectProps | no | undefined | The props for react-select component |
value | string | no | undefined | The value for a single select* |
values | string[] | no | undefined | The values for a multiple select* |
* The order of the evaluated fields for deciding which is the selected value (take attention to the presence or not of the "s" after "value"):
Name | Type | Required | Default | Description |
---|---|---|---|---|
isClearable | boolean | no | false | Set to true to allow remove of selection with backspace or clicking on the x of the value(s) |
isCreatable | boolean | no | false | Set to true to allow creation of new values based on the input string |
msgNoOptionsAvailable | string | no | No more options are available | The message displayed when all options are already selected |
msgNoOptionsMatchFilter | string | no | No options match the filter | The message displayed when no options match case-insensitive the input value |
msgNoValidValue | string | no | The new value is not valid (contains space) | The message displayed when the input value is not accepted by a Creatable for creating a new value |
Name | Type | Required | Description |
---|---|---|---|
label | string | yes | The text displayed as option or value |
value | any | yes | The value associated to this option and returned by onChange |
It does not accept by default new options containing space.
set SelectProps.isValidNewOption to something like the following code to define your own validation:
1(inputValue: string) => inputValue !== '';
The format for a new options is: 'INPUTED_TEXT (new)'.
set SelectProps.formatCreateLabel to something like the following code for creating your own formated option:
1(value: string) => `${value} (New Label)`;
The new option will be at start of options list.
Set SelectProps.createOptionPosition to last to display the new option to the end of options list.
Label: inputLabelProps.style
ReactSelect: SelectProps.styles
Please check the code in storybook/stories.tsx to see how to customize ReactSelectMaterialUi.
Please check section Versions in CHANGELOG.md.
SingleSelect - a component for selecting a single value. It can be imported with:
1import { SingleSelect } from 'react-select-material-ui';
1import * as React from "react"; 2import MaterialUiCreatable, { MaterialUiCreatableProps } from "./MaterialUiCreatable"; 3 4const SingleSelect = (props: MaterialUiCreatableProps) => ( 5 <MaterialUiCreatable 6 {...props} 7 SelectProps={{Without helper text 8 ...props.SelectProps, 9 isMulti: false 10 }} 11 fullWidth={true} 12 /> 13); 14 15export default SingleSelect;
MultipleSelect - a component for selecting multiple values. It can be imported with:
1import { MultipleSelect } from 'react-select-material-ui';
Setting SelectProps.isClearable to true will display the clearable button only if there are more then one selected value.
1import * as React from 'react'; 2import MaterialUiCreatable, { MaterialUiCreatableProps } from './MaterialUiCreatable'; 3 4const MultipleSelect = (props: MaterialUiCreatableProps) => ( 5 <MaterialUiCreatable 6 {...props} 7 SelectProps={{ 8 ...props.SelectProps, 9 isMulti: true, 10 isClearable: true, 11 }} 12 fullWidth={true} 13 /> 14); 15 16export default MultipleSelect;
TagsSelect - a component for selecting multiple tag based on MultipleSelect. It can be imported with:
1import { TagsSelect } from 'react-select-material-ui';
ColorsSelect - a component for selecting multiple HTML colors (with preview) based on MultipleSelect. It can be imported with:
1import { ColorsSelect } from 'react-select-material-ui';
The base component which allowes to create read-only or creatable select components for selecting only one or more values:
1import * as React from 'react'; 2import ReactSelectMaterialUi from 'react-select-material-ui'; 3 4class App extends React.Component { 5 render() { 6 const options: string[] = ['Africa', 'America', 'Asia', 'Europe']; 7 8 return ( 9 <div className="App"> 10 <ReactSelectMaterialUi style={{ width: 100 }} value="Europe" options={options} onChange={this.handleChange} /> 11 </div> 12 ); 13 } 14 15 handleChange = (value: string) => { 16 console.log(value); 17 }; 18} 19 20export default App;
The single select which creates a full width component for selecting a single value:
1import * as React from 'react'; 2import { SingleSelect } from 'react-select-material-ui'; 3 4class App extends React.Component { 5 render() { 6 const options: string[] = ['Africa', 'America', 'Asia', 'Europe']; 7 8 return ( 9 <div className="App"> 10 <SingleSelect value="America" placeholder="Select a continent" options={options} onChange={this.handleChange} /> 11 </div> 12 ); 13 } 14 15 handleChange = (value: string) => { 16 console.log(value); 17 }; 18} 19 20export default App;
The multiple select which creates a full width component for selecting multiple values:
1import * as React from 'react'; 2import { MultipleSelect } from 'react-select-material-ui'; 3 4class App extends React.Component { 5 render() { 6 const options: string[] = ['New York', 'London', 'Vienna', 'Budapest']; 7 8 return ( 9 <div className="App"> 10 <MultipleSelect 11 label="Choose some cities" 12 values={['London', 'Vienna']} 13 options={options} 14 helperText="You can add a new city by writing its name and pressing enter" 15 onChange={this.handleChange} 16 SelectProps={{ 17 isCreatable: true, 18 msgNoOptionsAvailable: 'All cities are selected', 19 msgNoOptionsMatchFilter: 'No city name matches the filter', 20 }} 21 /> 22 </div> 23 ); 24 } 25 26 handleChange = (values: string[]) => { 27 console.log(values); 28 }; 29} 30 31export default App;
The select multiple tags component:
1import * as React from 'react'; 2import { TagsSelect } from 'react-select-material-ui'; 3 4class App extends React.Component { 5 render() { 6 const options: string[] = ['Personal', 'Work', 'Important', 'Optional', 'Required']; 7 8 return ( 9 <div className="App"> 10 <TagsSelect 11 label="Tags" 12 options={options} 13 onChange={this.handleChange} 14 SelectProps={{ 15 isCreatable: true, 16 msgNoOptionsAvailable: 'All tags are selected', 17 msgNoOptionsMatchFilter: 'No tag matches the filter', 18 }} 19 /> 20 </div> 21 ); 22 } 23 24 handleChange = (values: string[]) => { 25 console.log(values); 26 }; 27} 28 29export default App;
The select multiple colors component:
1import * as React from 'react'; 2import { ColorsSelect } from 'react-select-material-ui'; 3 4class App extends React.Component { 5 render() { 6 const options: string[] = ['red', '#123456', 'yellow', '#fedcba']; 7 8 return ( 9 <div className="App"> 10 <ColorsSelect 11 label="Colors" 12 options={options} 13 helperText="You can add a new color as long as it is a valid HTML color" 14 onChange={this.handleChange} 15 SelectProps={{ 16 isCreatable: true, 17 }} 18 /> 19 </div> 20 ); 21 } 22 23 handleChange = (values: string[]) => { 24 console.log(values); 25 }; 26} 27 28export default App;
Please check section Changelog in CHANGELOG.md.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/29 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
28 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