Skip to content

ua-opendata/react-phone-input

Repository files navigation

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} />;
}

About

React Phone (Ukrainian) Input using react-input-mask

Resources

License

Stars

Watchers

Forks

Packages

No packages published