Numeric
Default
Preview
Config
Value
The numeric value to display.
Type
Format type.
Precision
Fixed decimal precision.
Currency
Currency code when type is currency or currency-code.
Humanize
Human-readable shorthand.
Trim Fraction Zeros
Trim trailing zeros after applying precision.
Precision
[precision="2"]
Preview
Percent
[type="percent"]
Preview
Currency
[type="currency"] [type="currency-code"]
Preview
Humanize
[humanize="k"] [humanize="auto"]
Preview
Trim Fraction Zeros
[precision="2" trim-fraction-zeros="true"]
Preview
Digital
[type="digital"] [type="digital-binary"]
Preview
API
| Attribute | Type | Default | Description |
|---|---|---|---|
value | number | — | Required. The value to display. |
type | number | percent | currency | currency-code | digital | digital-binary | number | Format type. |
precision | number | 0 | Fixed decimal precision. |
trim-fraction-zeros | boolean | false | Trim trailing fraction zeros after applying precision. |
currency | string | EUR | Currency code when type is currency or currency-code. |
humanize | auto | k | m | b | t | — | Format to a human-readable shorthand. |