Skip to content

String

Description

Value.String is a base component for displaying values of the type string.

Demos

Empty

<Value.String showEmpty />

Placeholder

The value was not filled in
<Value.String placeholder="The value was not filled in" />

Value

Text value
<Value.String value="Text value" />

Label

<Value.String label="Label text" showEmpty />

Label and value

Text value
<Value.String label="Label text" value="Text value" />

Inline

This is before the componentText valueThis is after the component

<p>
This is before the component
<Value.String value="Text value" inline />
This is after the component
</p>

Properties

Standard value component props

PropertyTypeDescription
valuestring(optional) Source data value for the input
showEmptyboolean(optional) True to show the component even when the value is empty.
labelstring(optional) Field label to show above / before the input feature
placeholderstring(optional) Text showing in place of the value if no value is given
pathstring(optional) JSON Pointer for where the data for this input is located in the source dataset (when using DataContext)
inlineboolean(optional) True to show the value without any DOM elements surrounding it. I.e for putting it as part of a text.