A component that displays a formatted text.
formatThe format style for the number.
decimal: Standard number formatting, locale-aware (default).percent: Percentage formatting, locale-aware.localeFormats to the language provided. Accepts multiple locales in an array as sequential fallbacks.
maximumFractionDigitsmaximum-fraction-digitsThe maximum number of fraction digits to use.
minimumFractionDigitsminimum-fraction-digitsThe minimum number of fraction digits to use.
minimumIntegerDigitsminimum-integer-digitsThe minimum number of integer digits to use.
signDisplaysign-displayDetermine how the positive or negative sign should display.
Behavior:
always: Always display the sign.auto: Sign displays for negative numbers only, including negative zero.exceptZero: Sign displays for positive and negative numbers, but not zero.never: Never display the sign.sizeApplies styling based on the size provided. If no size is provided, it will display as inline text.
valueThe value you want formatted.
Initial Release
The following CSS variables are available to override the default theme styles of the q2-formatted-text component.