Description
Value.String
is a base component for displaying values of the type string
.
import { Value } from '@dnb/eufemia/extensions/forms'render(<Value.String />)
Demos
Empty
Code Editor
<Value.String showEmpty />
Placeholder
The value was not filled in
Code Editor
<Value.String placeholder="The value was not filled in" />
Value
Text value
Code Editor
<Value.String value="Text value" />
Label
Code Editor
<Value.String label="Label text" showEmpty />
Label and value
Text value
Code Editor
<Value.String label="Label text" value="Text value" />
Inline
This is before the componentText valueThis is after the component
Code Editor
<P> This is before the component <Value.String value="Text value" inline /> This is after the component </P>