International phone input with country selector β outputs E.164
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | "" | E.164 phone number (bindable) |
name | string | "" | Hidden input name for form submission |
defaultCountry | CountryCode | "US" | Initial country selection |
placeholder | string | "Phone number" | Input placeholder |
required | boolean | false | Mark field required |
disabled | boolean | false | Disable the input |
onChange | (value: string) => void | - | Change callback with E.164 value |
libphonenumber-js AsYouType as the user types+ prefix<input name="β¦"> carries the E.164 value for native <form> actions