Skip to content

Import#

import { Value } from '@dnb/eufemia/extensions/forms'
render(<Value.Currency />)

Description#

Value.Currency is a wrapper component for displaying number values, with user experience tailored for currency values.

There is a corresponding Field.Currency component.

import { Value } from '@dnb/eufemia/extensions/forms'
render(<Value.Currency />)

See Best Practices for number formatting for the canonical locale-specific examples that back up this component.

Relevant links#

Demos#

Empty#

<Value.Currency showEmpty />

Placeholder#

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

Value#

<Value.Currency value={150} />

Suffix#

<Value.Currency value={150} suffix=" - my suffix" />

Label#

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

Label and value#

Label text
<Value.Currency label="Label text" value={60000000} />

Inline#

This is before the component This is after the component

<P>
  This is before the component <Value.Currency value={25000} inline /> This
  is after the component
</P>

Inline and label#

This is before the component This is after the component

<P>
  This is before the component{' '}
  <Value.Currency label="Label text" value={25000} inline /> This is after
  the component
</P>
Suggest an edit