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
material-ui-phone-number
A material-ui react component to format phone numbers. Based on react-phone-input-2
mui-phone-number
A material-ui v5+ react component to format phone numbers. Based on react-phone-input-2
react-mui-phone-input
React component to format phone number, based on MUI.
react-ui-phone-input
A react component to format phone numbers
npm install react-phone-input-material-ui
Typescript
Module System
Node Version
NPM Version
JavaScript (67.93%)
Less (31.77%)
HTML (0.31%)
Total Downloads
678,832
Last Day
994
Last Week
4,195
Last Month
17,977
Last Year
295,730
24 Stars
429 Commits
12 Forks
1 Watching
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
2.18.1
Package Id
react-phone-input-material-ui@2.18.1
Unpacked Size
412.31 kB
Size
194.77 kB
File Count
26
NPM Version
9.5.0
Node Version
19.7.0
Publised On
05 May 2023
Cumulative downloads
Total Downloads
Last day
-2.8%
994
Compared to previous day
Last week
-11.4%
4,195
Compared to previous week
Last month
-2.9%
17,977
Compared to previous month
Last year
35.8%
295,730
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
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
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
110 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
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