

Every state


default


focus


filled


filled-gb


filled-us


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "phone" | Id of the number input; the label, description and error point at it. |
| name | string | "phone" | Form name of the hidden full number in E.164 (+31612345678). |
| label | string | "Phone number" | Visible label. |
| description | string | – | Help text under the field. |
| country | "NL" | "GB" | "DE" | "BE" | "FR" | "US" | "NL" | Country picked at the start; sets the dial code, grouping and placeholder. |
| defaultValue | string | – | Starting number, national (06 12345678) or without the trunk 0. |
| onCountryChange | (country: PhoneCountry) => void | – | Fires when the country code changes. |
| onValueChange | (e164: string) => void | – | Fires with the full number on every change. |
| required | boolean | – | Marks the field required. |
| disabled | boolean | – | Disables the select and the number. |
| error | string | – | Error message; without one, a too-short number shows a hint on blur. |
| className | string | – | Extra classes on the outer Field. |

