1.8.33 ⢠Published 2 years ago
npm-quality-score-test v1.8.33
react-international-phone
š¤ International phone input component for React

Features
- š Easy to integrate - Just import and use, no need for the initial setup. Integrate with any UI library using a headless hook.
- š Country guessing - Just start typing and the component will guess the country and format the phone. Country flags are rendered using Twemoji.
- ⨠Lightweight - Low bundle size, no third-party dependencies.
- š Easy to customize - Customize styles and component behavior using props.
- ⨠Caret position handling - Typing in the middle of the input, selection and deletion feels naturally.
- āļø Validation - Easily validate entered phone numbers using provided functions.
Installation
$ npm i react-international-phoneBasic usage
import { useState } from 'react';
import { PhoneInput } from 'react-international-phone';
import 'react-international-phone/style.css';
const App = () => {
const [phone, setPhone] = useState('');
return (
<div>
<PhoneInput
initialCountry="ua"
value={phone}
onChange={(phone) => setPhone(phone)}
/>
</div>
);
};Documentation
Find the full API reference on official documentation.
2.0.0-rc.1
2 years ago
1.8.32
2 years ago
1.8.33
2 years ago
1.8.20
3 years ago
1.8.21
3 years ago
1.8.22
3 years ago
1.8.23
3 years ago
1.8.24
3 years ago
1.8.25
3 years ago
1.8.26
3 years ago
1.8.27
3 years ago
1.8.28
3 years ago
1.8.29
3 years ago
1.8.30
3 years ago
1.8.31
3 years ago
1.8.14
3 years ago
1.8.15
3 years ago
1.8.16
3 years ago
1.8.17
3 years ago
1.8.18
3 years ago
1.8.19
3 years ago
1.8.13
3 years ago
1.8.12
3 years ago
1.8.11
3 years ago
1.8.10
3 years ago
1.8.9
3 years ago
1.8.8
3 years ago
1.8.7
3 years ago
1.8.6
3 years ago
1.8.5
3 years ago
1.8.4
3 years ago
1.8.3
3 years ago
1.8.2
3 years ago
1.8.1
3 years ago
1.7.4
3 years ago
1.7.3
3 years ago
1.7.2
3 years ago
1.7.1
3 years ago
1.7.0
3 years ago