<nve-format-number>
Properties
Pad integer output to at least this many digits (1-21).
number
Round fraction output to at most this many digits (0-20).
number
Pad fraction output to at least this many digits (0-20).
number
Grouping separators: 'auto' | 'always' | 'min2' | 'true' | 'false'.
string
Sign display: 'auto' | 'never' | 'always' | 'exceptZero'.
auto
never
always
exceptZero
Compact notation display: 'short' | 'long'. Only applies when notation is compact.
short
long
Number notation: 'standard' | 'scientific' | 'engineering' | 'compact'.
standard
scientific
engineering
compact
Unit display style: 'short' | 'long' | 'narrow'.
short
long
narrow
Unit identifier (such as kilometer or byte). Required when formatStyle is unit.
string
Currency display style: 'symbol' | 'code' | 'name' | 'narrowSymbol'.
symbol
code
name
narrowSymbol
Currency sign style: 'standard' | 'accounting'.
standard
accounting
ISO 4217 currency code (such as USD or EUR). Required when formatStyle is currency.
string
Formatting style: 'decimal' | 'currency' | 'percent' | 'unit'.
decimal
currency
percent
unit
Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default.
string
Optional numeric string 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.
string
Slots
Numeric string to format (such as 1234567 or 1234.56). Serves as fallback before hydration.