Skip to content
BigBang

Popular

    ↑↓Navigate↵OpenEscClose
    TR

    Components

    MoneyText

    An amount of money written exactly from minor units, in the Provider language.

    Storybook
    Storybook
    Source
    Source

    MoneyText is plain text inside a <data> element; its value attribute holds the exact decimal value. Screen readers read the formatted text (“₺1,234.56”).

    MoneyText takes no focus.

    None.

    Example Output
    123456n “₺1,234.56” (read as “1,234 lira 56” or similar)
    -2500n, tone="sign" “-₺25.00”

    All tones meet 4.5:1 for text; fraction="subtle" meets 4.5:1 with color-text-subtle too.

    Criterion How MoneyText meets it What product teams must do
    1.4.1 Use of colour tone="sign" writes the sign too. Do not combine a coloured tone with signDisplay="never".
    3.1.2 Language of parts The format follows the Provider language. Match the Provider language to the page language.