react-simple-phone-input
v6.0.0
Published
A simple react phone input component with calling code dropdown🤷
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.
Features
- SSR Friendly
- Customizable
- Multi Design
- Search Country
- Smallest Bundle Size (About 98kb)
- Typescript support
Installation
$ pnpm i react-simple-phone-inputUsage
import { PhoneInput, PhoneInputResponseType } from "react-simple-phone-input";
import "react-simple-phone-input/dist/index.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 6 released. see the changelogs
Issues or correction
If you face any issues, missing data or wrong data about country, you are welcome to create an issue.
