Components · Data Display
Honest money: Intl formatting, tabular numerals, the currency’s minor unit and a true minus sign.
import { Amount } from '@nexub/react';| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| value | number | — | ✓ | The amount. |
| currency | string | — | ✓ | ISO 4217 code, e.g. "USD". |
| locale | string | — | — | BCP 47 locale. Defaults to the user's. |
| size | 'sm' | 'md' | 'lg' | 'display' | 'md' | — | `display` is a hero figure with a quieter symbol and minor units. |
| tone | 'neutral' | 'auto' | 'neutral' | — | `auto` colours gains success and losses error. |
| signDisplay | Intl signDisplay | — | — | e.g. 'exceptZero' to show + on gains. |