BalanceReckon Design System
FoundationsText

Text

Renders body text with consistent size, weight, colour and leading.

TextProps

PropTypeRequiredDefaultDescription
alignCSSProperties['textAlign']
inherit|-moz-initial|initial|revert|unset|center|end|justify|left|match-parent|right|start
——The horizontal alignment.
colorTextColorKey | 'inherit'
critical|warning|info|success|accent|textPrimary|textBody|textSecondary|textTertiary|textDisabled|textLink|inherit
——The color of the text.
inlineboolean——Display as an inline-level element.
leadingkeyof BalanceTheme['typography']['leading']
tighter|tight|base|loose|looser
——The leading of the text.
numberOfLinesnumber——Truncate the text with an ellipsis after computing the text layout, including line wrapping, such that the total number of lines does not exceed this number. Will override the `overflowStrategy` prop.
overflowStrategyOverflowStrategyType
nowrap|wrap|truncate|breakword
—wrapManage how text behaves with regard to overflow.
size
xsmall|small|medium|large|xlarge
——The size of the text.
tabularNumbersboolean——Enable to make numbers the same width.
transformCSSProperties['textTransform']
inherit|-moz-initial|initial|revert|unset|capitalize|full-size-kana|full-width|lowercase|none|uppercase
——Transform the text casing.
weightkeyof BalanceTheme['typography']['fontWeight']
medium|regular|semibold|bold|heavy
——The font-weight of the text.
Also accepts ValidBoxProps