Format Bytes

See below to learn more about properties, slots, events, style variables, CSS parts, and methods.

There is no difference between the APIs of the elements, And the only difference is in the names of the events

Properties

Name
display
TypeDefault
'short'
Default
'short'
Attribute
display
Reflect
false
Description
Name
locale
Type
string | string[]
Default
undefined
Default
undefined
Attribute
locale
Reflect
false
Description
Name
decimals
Type
number | [number, number]
Default
undefined
Default
undefined
Attribute
decimals
Reflect
false
Description
Name
separator
Type
string
Default
' '
Default
' '
Attribute
separator
Reflect
false
Description
Name
signed
Type
boolean
Default
undefined
Default
undefined
Attribute
signed
Reflect
false
Description
Name
standard
TypeDefault
'METRIC'
Default
'METRIC'
Attribute
standard
Reflect
false
Description
Name
unit
TypeDefault
'auto'
Default
'auto'
Attribute
unit
Reflect
false
Description
Name
value
Type
number
Default
undefined
Default
undefined
Attribute
value
Reflect
false
Description

Slots

There are no Slots.

Events

There are no Events.

CSS Variables

There are no CSS Variables.

CSS Parts

There are no CSS Parts.

Methods

There are no Methods.