shadow
The FormatDigital component is designed to format numeric values into a human-readable digital format with respect to various unit prefixes such as kilo, mega, giga, etc. It offers options to customize units, display style of units and supports localization.
Description | The value to be formatted. Specifies the size in bytes or bits to display. |
Attribute | value |
Type | number | string |
Default | undefined |
Description | Formatting unit. Valid values are 'bit' or 'byte'. |
Attribute | unit |
Type | string |
Default | "byte" |
Description | Unit display style. Valid values are 'short', 'long' or 'narrow'. |
Attribute | unit-display |
Type | string |
Default | "short" |
No events available for this component.
No public methods available for this component.
Name | Description |
---|
native | Refers to the main container of the element |
formatted | Refers to the element containing the formatted value |
No CSS custom properties available for this component.
Name | Description |
---|
start | Content placed before the formatted value. |
end | Content placed after the formatted value. |