{"repo":"catamphetamine/react-phone-number-input","free":true,"listed":false,"github":"https://github.com/catamphetamine/react-phone-number-input","clone":"git clone https://github.com/catamphetamine/react-phone-number-input.git","description":"React component for international phone number input","language":"JavaScript","stars":968,"topics":["phone","number","react"],"license":"MIT","category":"ui-components","readme_excerpt":"react-phone-number-input International phone number for React. See Demo Install Alternatively, one could include it on a web page directly via a tag. Use This package exports two variants of the input component, depending on what you prefer: With country select — A phone number input field with a country select on the left side. This is the most straightforward and easy-to-use one. Provides everything out-of-the-box: CSS styles. Country flags. Country labels in different languages. Without country select — Just the phone number input field. This is the \"bare-bones\" variant. For those who like minimalism or would like to build their own. With country select \"With country select\" component requires only two properties: value and onChange(value) . More on the properties: onChange When the user types something in the input field, onChange function will be called, with its argument being the parsed phone number (in E.164 format). For example, if the user chooses \"United States\" and enters (213) 373-4253 in the input field, onChange function will be called with the argument \"+12133734253\" . When the user clears the input field, onChange function will be called with undefined as an argument. Perhaps null would've been better, but historically it was decided to be undefined . value The input value (in E.164 format). Example: \"+12133734253\" . Any \"falsy\" value — for example, undefined , null , or empty string \"\" — will be treated as \"no value\". defaultCountry (optional) Specifies the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/catamphetamine","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/catamphetamine/react-phone-number-input/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}