@vrao/react-telephone
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

react-telephone - Demo

All Contributors


☎️ react-telephone

Tiniest react input phone component (auto formating included)


Demo · Documentation · Twitter Created by Joris

Features

  • 🌐 Follows the E.164 : The international public telecommunication numbering plan
  • 🎨 Easily Customizable
  • 🪶 Lightweight - less than 6kb
  • 📞 Native - it's just a HMTL input
  • 🔌 easily integration - it works without additional configuration (remix, react-hook-form)
  • [ ] Controlled mode: coming soon
  • [ ] Custom render for Phone.Country and Phone.Number: coming soon

Examples (Demo)

Installation

yarn add @vrao/react-telephone

or

npm i @vrao/react-telephone

Usage

import { Phone } from '@vrao/react-telephone';

export default function MyComponent() {
  return (
    <Phone>
      <Phone.Country />
      <Phone.Number />
    </Phone>
  );
}

Props

Prop Description Default Value
defaultCountry Default country displayed for the country selector First country (Afghanistan) Country ISO2 code (fr, us)

Contributors

Thanks goes to these wonderful people (emoji key):


Joris

💻 📖 🤔 👀

Michaël Rézac

🤔 💻

Package Sidebar

Install

npm i @vrao/react-telephone

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

303 kB

Total Files

22

Last publish

Collaborators

  • vrao