Gathering detailed insights and metrics for react-phone-input-material-ui
Gathering detailed insights and metrics for react-phone-input-material-ui
Gathering detailed insights and metrics for react-phone-input-material-ui
Gathering detailed insights and metrics for react-phone-input-material-ui
react-phone-input-2
A react component to format phone numbers
mui-tel-input
A phone number input designed for the React library MUI built with libphonenumber-js
material-ui-phone-number
A material-ui react component to format phone numbers. Based on react-phone-input-2
react-phone-number-input
Telephone number input React component
npm install react-phone-input-material-ui
51.5
Supply Chain
77.7
Quality
73.9
Maintenance
100
Vulnerability
98.2
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
24 Stars
429 Commits
12 Forks
1 Watching
2 Branches
1 Contributors
Updated on 15 Sept 2024
Minified
Minified + Gzipped
JavaScript (67.93%)
Less (31.77%)
HTML (0.31%)
Cumulative downloads
Total Downloads
Last day
29%
1,098
Compared to previous day
Last week
7.7%
5,375
Compared to previous week
Last month
2.1%
23,262
Compared to previous month
Last year
42.4%
295,623
Compared to previous year
25
Highly customizable phone input component with auto formatting. Based on the wonderful react-phone-input-2 package.
Supports material-ui v4 and v5.
1npm install react-phone-input-material-ui --save 2 3or 4 5yarn add react-phone-input-material-ui
Mandatory props: value
and onChange
for controlling field; component
, ideally TextField
1import React from 'react'; 2import ReactPhoneInput from 'react-phone-input-material-ui'; 3import { TextField, withStyles } from '@material-ui/core'; 4 5const styles = theme => ({ 6 field: { 7 margin: '10px 0', 8 }, 9 countryList: { 10 ...theme.typography.body1, 11 }, 12}); 13 14 15function PhoneField(props) { 16 const { value, defaultCountry, onChange, classes } = props; 17 18 return ( 19 <React.Fragment> 20 {/* Simple usage */} 21 <ReactPhoneInput 22 value={value} 23 onChange={onChange} // passed function receives the phone value 24 component={TextField} 25 /> 26 27 {/* Configure more */} 28 <ReactPhoneInput 29 value={value} 30 defaultCountry={defaultCountry || 'gb'} 31 onChange={onChange} 32 inputClass={classes.field} 33 dropdownClass={classes.countryList} 34 component={TextField} 35 /> 36 </React.Fragment> 37 ); 38} 39 40export default withStyles(styles)(PhoneField);
Forked from react-phone-input-2. All the features of react-phone-input-2 are available. I will be update this library frequently to upto date with origin library
Code style changes not allowed
Based on react-phone-input
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/19 approved changesets -- score normalized to 2
Reason
1 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
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
108 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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