Skip to content

CurrencyCHF

Format Swiss franc amounts for the selected locale.

alpina-ui/swiss/currency-chf

Interactive preview

Production estimateit-CH
CHF 1’280.50
Estimated totalCHF

Usage notes

Pass the unformatted amount and a Swiss locale. The data element keeps the raw value and isolates the formatted currency from surrounding right-to-left text.

When to use

Set Swiss franc amounts in a ledger, credit note or payment total so that amounts can be compared down a column.

When to avoid

Use an editable amount field when the reader needs to enter a sum. Cash rounding belongs only on applicable cash totals.

Accessibility

Supply the display locale so the spoken minus is in the reader’s language. Keep the amount and its currency together at narrow widths.

Keys
KeyAction
—Read in document order. The component has no keyboard command of its own.

Content

Name the amount in a short heading and let CurrencyCHF supply the currency and digits. Explain a credit in the adjacent description.

Use
Credit balance · CHF −12.50
Avoid
Money CHF CHF −12.5

Copy in four languages

German
Guthaben8 characters
French
Avoir5 characters
Italian
Credito7 characters
Romansh
Credit6 characters
Add to your project
npx --no-install alpina add currency-chf