An international phone number input with country selection.
Installation
Usage
import { PhoneInputDemo } from "viora-ui";import { PhoneInputDemo } from "viora-ui";
export default function PhoneInputDemoDemo() {
return (
<div className="flex min-h-[350px] w-full items-center justify-center p-6">
<PhoneInputDemo />
</div>
);
}API Reference
CountryEntry
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | - | Configuration for label. |
CountrySelect
| Prop | Type | Default | Description |
|---|---|---|---|
| disabled? | boolean | false | Whether the component is disabled. |
| value | RPNInput.Country | - | Configuration for value. |
| options | CountryEntry[] | [] | Configuration for options. |
| onChange | (country: RPNInput.Country) => void | - | Callback fired on change event. |
CountrySelectOption
| Prop | Type | Default | Description |
|---|---|---|---|
| selectedCountry | RPNInput.Country | - | Configuration for selectedCountry. |
| onChange | (country: RPNInput.Country) => void | - | Callback fired on change event. |
| onSelectComplete | () => void | - | Callback fired on selectcomplete event. |
Built by Otis
Last updated: 9/13/2026