Installation
Examples
International phone field
Country selector + number input.
πΊπΈ+1
π΅π+63
π¬π§+44
π¦πΊ+61
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | β | Controlled value. |
| onChange | (v: string) => void | β | Called on change. |
| defaultCountry | string | 'US' | ISO country code for default dial prefix. |
| invalid | boolean | false | Error state. |
| size | 'sm'|'md'|'lg' | 'md' | Controls height. |