# react-phone-number

> A React component for displaying phone numbers

Latest version **1.3.1** (published 2017-04-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-phone-number
pnpm add react-phone-number
yarn add react-phone-number
bun add react-phone-number
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2017-04-25 |
| First published | 2015-12-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nathan Hoad |
| Maintainers | nathanhoad |
| Keywords | react, phone |

## Links

- npm: https://www.npmjs.com/package/react-phone-number
- Repository: https://github.com/nathanhoad/react-phone-number
- Homepage: https://github.com/nathanhoad/react-phone-number#readme
- Issues: https://github.com/nathanhoad/react-phone-number/issues
- npm.io page: https://npm.io/package/react-phone-number

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.3.1 (latest) — 2017-04-25
- 1.3.0 — 2017-04-25
- 1.2.1 — 2017-04-23
- 1.2.0 — 2016-11-11
- 1.1.0 — 2016-05-11
- 1.0.0 — 2015-12-07

## README

# React Phone Number

A React component for rendering a phone number.


## Usage

`npm install --save react-phone-number`

And then:

```javascript
import PhoneNumber from 'react-phone-number';
```

```html
<PhoneNumber number="+61412345678" />
<PhoneNumber number={user.phone} />
```

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

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


## Testing

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

`npm test`

---
_Source: https://npm.io/package/react-phone-number · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
