2.0.1 • Published 7 months ago

@ua-opendata/react-phone-input v2.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 months ago

React Phone Input

For ukranian phone formats.

Demo

Installation

npm i @ua-opendata/react-phone-input@^2.0

Usage

See demo application sources for code examples.

import * as React from "react";
import { PhoneInput } from "@ua-opendata/react-phone-input";

const App = () => {
    const [value, setValue] = React.useState("");
    const handleChange = React.useCallback((e) => setValue(e.target.value));
    
    return <PhoneInput value={value} onChange={handleChange} />;
}
2.0.1

7 months ago

2.0.0

7 months ago

1.0.3

7 months ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago