Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

react-phone-number

1.3.1 • Public • Published

React Phone Number

A React component for rendering a phone number.

Usage

npm install --save react-phone-number

And then:

import PhoneNumber from 'react-phone-number';
<PhoneNumber number="+61412345678" />
<PhoneNumber number={user.phone} />

You can also have the a tel: link automatically added:

<PhoneNumber number={user.phone} isLinked={true} />

Testing

Install Babel CLI (npm install -g babel-cli) then then:

npm test

Keywords

install

npm i react-phone-number

Downloadsweekly downloads

294

version

1.3.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability