Phone number field
Use the phone number field to allow a user to input a valid phone number.
Package: @terreno/ui
Categories: Component
Props interface: PhoneNumberFieldProps
Story source: demo/stories/Phonenumberfield.stories.tsx
Live demo
Props
| Prop | Type | Required | Description |
|---|---|---|---|
onChange | OnChangeCallback | Yes | |
blurOnSubmit | boolean | ||
defaultCountryCode | CountryCode | Defaults to "US" | |
disabled | boolean | ||
errorText | string | ||
helperText | string | ||
iconName | IconName | ||
id | string | ||
onBlur | OnChangeCallback | ||
onEnter | reflection | ||
onFocus | reflection | ||
onIconClick | reflection | ||
onSubmitEditing | reflection | ||
placeholder | string | ||
testID | string | Root test id for the primary interactive element or container. | |
testIDs | FieldTestIDs | ||
title | string | ||
value | string |