Skip to content

Currency - Web Component

The Currency component can be used imported from:

Playground

Parameters

...

Slots

This component has slots. Check the documentation about how to use the slots.

NameTagsDescription

Parameters use

amount

The amount to be displayed as a currency.

locale

The locale to be used to format the currency. If not set, the default locale of the browser will be used.

currency

The currency to be used to format the currency. If not set, the default currency of the locale will be used. The currency code follow the ISO 4217

decimals

The number of decimals to be displayed. If not set, the default number of decimals of the currency will be used.

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

HTML Examples

CodeSandbox example