<nve-format-bytes>
Properties
Unit system: 'decimal' uses powers of 1000 and 'binary' uses powers of 1024.
decimal
binary
Language tag (such as en-US or de-DE) used to format the number. Defaults to document.documentElement.lang or the runtime default.
string
Round fraction output to at most this many digits. Defaults to two effective digits after the decimal point.
number
Pad fraction output to at least this many digits.
number
Optional unit magnitude. When omitted, the component selects a unit from the byte count.
b
kb
mb
gb
tb
pb
Unit label length: 'short' renders labels such as 'MB'; 'long' renders labels such as 'megabytes'.
short
long
Optional byte count for values supplied by JavaScript or bound data. By default, the component formats the element's text content, which also serves as the SSR fallback. When both are present, this property takes precedence.
number
Slots
Numeric byte count to format (such as 1048576). Serves as fallback before hydration.