Skip to content

Number โ€‹

...

Browser support โ€‹

...

Parameters โ€‹

The long option for square-* and cubic-* values is only supported for English locales.

The parametrization of the component can be done with the following custom HTML params:

NameTypeDescription
localestringThe locale to be used. If not set, the default locale of the browser will be used.
valuenumberThe value to be displayed.
unitstringThe unit to be displayed.
truncatebooleanIf `true`, the number will be truncated.
compactbooleanIf `true`, the number will be displayed in a compact format.
decimalsnumberThe number of decimals to be displayed.

Playground โ€‹

Customization โ€‹

HTML Examples โ€‹

Imports
Code