Creates a field for entering a phone number.
Allows entering numbers, spaces, and the +
, ( )
, -
characters. Only numbers and the +
character at the beginning will remain in the data. For example, if you enter +7 (012) 345-67-89
, the data gets the +70123456789
value.
Name | Type | Description |
---|---|---|
type * | "field.phone-number" | Set component type. |
data * | writable | Data with values that will be processed or changed. Learn more about working with data. |
label | string | Label above the component. |
hint | string | Hint text. |
placeholder | string | A semi-transparent label that is shown in an empty field. |
validation | condition | Validation based on condition. |
Last updated: May 26, 2023