Import
import { Value } from '@dnb/eufemia/extensions/forms'render(<Value.Email />)
Description
Value.Email is a wrapper component for displaying string values, with user experience tailored for email values.
There is a corresponding Field.Email component.
import { Value } from '@dnb/eufemia/extensions/forms'render(<Value.Email />)
Relevant links
Demos
Empty
E-postadresse
Code Editor
<Value.Email showEmpty />
Placeholder
E-postadresseThe value was not filled in
Code Editor
<Value.Email placeholder="The value was not filled in" />
Value
E-postadressefirstname.lastname@domain.com
Code Editor
<Value.Email value="firstname.lastname@domain.com" />
Label
Label text
Code Editor
<Value.Email label="Label text" showEmpty />
Label and value
Label textfirstname.lastname@domain.com
Code Editor
<Value.Email label="Label text" value="firstname.lastname@domain.com" />
Inline
This is before the component firstname.lastname@domain.com This is after the component
Code Editor
<P> This is before the component{' '} <Value.Email value="firstname.lastname@domain.com" inline /> This is after the component </P>