FormatNumber
A number in the reader's locale and tabular figures: plain, compact, bytes, percent or duration, with an em dash for empty values.
beta
Examples
Live examples for this component are on the way.
API
import FormatNumber from '@tcpsystems/ui/foundation/FormatNumber';| Prop | Type | Default |
|---|---|---|
value | number | null | undefined | none |
mode? | NumberMode | 'number' |
locale? | string | 'en-GB' |
maximumFractionDigits? | number | none |
binary? | boolean | false |
fallback? | string | '—' |
| Hook | Kind |
|---|---|
.tcp-num | Root class |