Description
Value.PhoneNumber
is a wrapper component for displaying string values, with user experience tailored for phone number values.
Demos
Empty
<Value.PhoneNumber showEmpty />
Placeholder
<Value.PhoneNumber placeholder="The value was not filled in" />
Value
98 71 23 45
<Value.PhoneNumber value="98712345" />
Label
<Value.PhoneNumber label="Label text" showEmpty />
Label and value
0047 98 71 23 45
<Value.PhoneNumber label="Label text" value="+4798712345" />
Inline
This is before the component98 71 23 45This is after the component
<p>This is before the component<Value.PhoneNumber value="98712345" inline />This is after the component</p>
Properties
Standard value component props
Property | Type | Description |
---|---|---|
value | string | (optional) Source data value for the input |
showEmpty | boolean | (optional) True to show the component even when the value is empty. |
label | string | (optional) Field label to show above / before the input feature |
placeholder | string | (optional) Text showing in place of the value if no value is given |
path | string | (optional) JSON Pointer for where the data for this input is located in the source dataset (when using DataContext) |
inline | boolean | (optional) True to show the value without any DOM elements surrounding it. I.e for putting it as part of a text. |