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:
Name | Type | Description |
---|---|---|
locale | string | The locale to be used. If not set, the default locale of the browser will be used. |
value | number | The value to be displayed. |
unit | string | The unit to be displayed. |
truncate | boolean | If `true`, the number will be truncated. |
compact | boolean | If `true`, the number will be displayed in a compact format. |
decimals | number | The number of decimals to be displayed. |