Skip to main content
Version: 57.2.0

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

PropTypeRequiredDescription
onChangeOnChangeCallbackYes
blurOnSubmitboolean
defaultCountryCodeCountryCodeDefaults to "US"
disabledboolean
errorTextstring
helperTextstring
iconNameIconName
idstring
onBlurOnChangeCallback
onEnterreflection
onFocusreflection
onIconClickreflection
onSubmitEditingreflection
placeholderstring
testIDstringRoot test id for the primary interactive element or container.
testIDsFieldTestIDs
titlestring
valuestring