Enhances text with styles to visually communicate meaning, such as emphasis.
Text style should:
Strong
to highlight important data, such as Totals in a pricing tableSubdued
to de-emphasize less important text, such as the second line of an address.Text style should NOT:
By default, text will be left-aligned within the available space.
align
to control the text alignment: left
, center
or right
. Alter the alignment for different screen sizes using {base: 'left', medium: 'center'}
.Use to highlight important data, such as Totals in a pricing table.
Use to de-emphasize less important text, such as the second line of an address. Subdued text may be used to indicate empty state, for example, "No orders placed".