Skip to content

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
<Value.Email showEmpty />

Placeholder#

E-postadresseThe value was not filled in
<Value.Email placeholder="The value was not filled in" />

Value#

E-postadressefirstname.lastname@domain.com
<Value.Email value="firstname.lastname@domain.com" />

Label#

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

Label and value#

Label textfirstname.lastname@domain.com
<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

<P>
  This is before the component{' '}
  <Value.Email value="firstname.lastname@domain.com" inline /> This is
  after the component
</P>
Suggest an edit