atomic-format-unit (Deprecated)
atomic-format-unit (Deprecated)
This is for:
DeveloperIn this article
Atomic v1 has been deprecated. We recommend using the latest version of the Coveo Atomic library. |
The atomic-format-unit
component is used for formatting numbers with units.
The numerical format of compatible parents will be set according to the properties of this component.
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
|
|
The unit to use in unit formatting. Leverages the Intl.NumberFormat constructor. The unit must be sanctioned unit identifier |
|
|
|
|
The unit formatting style to use in unit formatting.
|
|
|