Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@ambiot/material-ui-phone-field
Advanced tools
Simple React phone input field based on [Material-UI](https://material-ui.com/), [`i18n-iso-countries`](https://www.npmjs.com/package/i18n-iso-countries) and [`libphonenumber-js`](https://www.npmjs.com/package/libphonenumber-js). **Overall look and feel w
Simple React phone input field based on Material-UI, i18n-iso-countries
and libphonenumber-js
. Overall look and feel will change when we add country flags.
To install the component run this command:
npm i -S @ambiot/material-ui-phone-field
Prop Name | Type | Default | Description |
---|---|---|---|
value | string | empty string | Accepts plain phone number, without any formatting. For example, +79031234567 |
onChange | (value: string) => void , required | — | Callback when user changes the input. Returns plain phone number without any formatting. If user didn't choose the country, returns just the value of the text field. If user did, returns text field value with plus sign and country calling code prepended. |
defaultCountry | string | null | ISO country code to be selected by default |
fullWidth | boolean | false | If true , field will take 100% of the available width. |
language | string | en | Language in which country names are displayed. Currently supports only en and ru values for English and Russian language respectively. |
registerLocale
method of i18n-iso-countries
without increasing the bundle size, so user can required languages manually.Select
field from the flags
folder. See this TSDX issue and this StackOverflow question.The package is built using TSDX. Refer to its documentation if you need some advanced stuff. Here's simple stuff:
git clone https://github.com/ambiot-llc/material-ui-phone-field.git
cd material-ui-phone-field
npm install
npm start
example
folder: cd example
npm install
npm start
to launch the example appsrc
. Edit the code and watch the changes in the browserFAQs
Simple React phone input field based on [Material-UI](https://material-ui.com/), [`i18n-iso-countries`](https://www.npmjs.com/package/i18n-iso-countries) and [`libphonenumber-js`](https://www.npmjs.com/package/libphonenumber-js). **Overall look and feel w
The npm package @ambiot/material-ui-phone-field receives a total of 2 weekly downloads. As such, @ambiot/material-ui-phone-field popularity was classified as not popular.
We found that @ambiot/material-ui-phone-field demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.