react-simple-phone-input
v5.2.2
Published
A simple react phone input component with calling code dropdown🤷
Downloads
2,803
Maintainers
Readme
React Simple Phone Input
A simple and customizable react phone number dropdown component. It can mix up with your designed theme and give a fluent vibe able dropdown area in your next project.
- SSR Friendly
- Customizable
- Multi Design
- Search Country
- Smallest Bundle Size (About 98kb)
- Typescript support
Installation
$ npm i react-simple-phone-input --save
Usage
import { PhoneInput, PhoneInputResponseType } from "react-simple-phone-input";
import "react-simple-phone-input/dist/style.css";
<PhoneInput
country="US"
placeholder="Add your phone"
onChange={(data: PhoneInputResponseType) => console.log(data)}
/>
See Demo
Options
Other Options
Event
ClassName
Customize styles
note:
version 5 released. see the changelogs
Contributing
- Code style changes not allowed
- Do not create issues about incorrect or missing country data
Issues or correction
If you face any issues, missing data or wrong data about country, you are welcome to create an issue.
Stay in touch
- Author - Siam Ahnaf
- Website - https://www.siamahnaf.com/
- Twitter - https://twitter.com/siamahnaf198
- Github - https://github.com/siamahnaf