For ukranian phone formats.
npm i @ua-opendata/react-phone-input@^2.0
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} />;
}