Skip to content

Function: PhoneField()

ts
function PhoneField(props: PhoneFieldProps): Block;

Defined in: src/renderer/blocks/index.ts:687

Phone number input field.

Parameters

ParameterType
propsPhoneFieldProps

Returns

Block

Examples

ts
PhoneField({name: 'phone', label: 'Phone number'});
ts
PhoneField({
  name: 'contactNumber',
  label: 'Contact number',
  placeholder: '+1 555 123 4567',
  required: true,
  invalid: 'Please enter a valid phone number',
});

Matterway Assistant SDK Documentation