06 12 34 56 78
Homecomponentsinput
PhoneNumberField
A field to get a phone number.
The PhoneNumberField is used to get user input in a text field. It shares many features of the TextField component, so refer to its documentation.
This field has two interactive fields: a dropdown for country selection and a text field for phone number.
API
defaultCountry
Required
CountryCode
onChange
Required
(value: string) => void
name
Required
string
value
string
size
small
regular
textAlign
end
start
required
true
false
validationMessage
string
onKeyDown
KeyboardEventHandler<HTMLInputElement>
onBlur
FocusEventHandler<HTMLInputElement>
id
string
label
string
tip
string
secondaryLabel
ReactNode
description
string
errorMessage
string
disabled
true
false
data
DataAttributeMap