MoleculesMoney Amount

Money Amount

@velon-finance/ui · status: stable · molecule · domain

Currency-aware amount display. Uses Intl.NumberFormat for locale-correct separators, ships in monospace+tabular figures so digits align across rows, and supports a Revolut-style hide-balance toggle.

Overview

$12,847.23R$ 4.321,50€ 0,50

With hide toggle

$12,847.23••••

Signed (income/expense colouring)

$1,500.00-$237.45

Code

import { MoneyAmount } from '@velon-finance/ui'
 
<MoneyAmount amount={12847.23} currency="USD" hideable />
<MoneyAmount amount={4321.5} currency="BRL" locale="pt-BR" />
<MoneyAmount amount={-237.45} currency="USD" signed />

Props

PropTypeDefaultDescription
amountnumber.The numeric amount (already in the target unit, not centavos)
currency'USD' | 'BRL' | 'EUR' | string.ISO 4217 code
localestringbrowser defaultLocale for separator format
hideablebooleanfalseShow the eye toggle to mask the amount
defaultHiddenbooleanfalseInitial hidden state (only when hideable)
decimalsnumber2Decimal places
signedbooleanfalseApply success/destructive tone for ±values
size'sm' | 'md' | 'lg' | 'xl''md'Visual size