Skip to content

String

Demos

Empty

<DataValue.String showEmpty />

Placeholder

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

Value

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

Label

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

Label and value

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

Inline

This is before the componentText valueThis is after the component
<>
This is before the component
<DataValue.String value="Text value" inline />
This is after the component
</>

Inline and label

This is before the componentText valueThis is after the component
<>
This is before the component
<DataValue.String label="Label text" value="Text value" inline />
This is after the component
</>