1.0.1 โ€ข Published 11 months ago

@vrao/react-telephone v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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

PropDescriptionDefaultValue
defaultCountryDefault country displayed for the country selectorFirst country (Afghanistan)Country ISO2 code (fr, us)

Contributors

Thanks goes to these wonderful people (emoji key):

1.0.1

11 months ago

1.0.0

12 months ago

0.0.0

12 months ago