Text

Inline text or a formatted animated number.

Source
BodyRegular text
CaptionSecondary label
FootnoteFootnote
TitleTitle
AccentTinted
Number1,234.5 units

size names a step of Dynamic Type, which carries size, leading, tracking and weight together. weight emphasises the step on the HIG ladder. caption is the kit's original name for shared.sub and still renders as it did; prefer size="footnote" color="secondary" in new UI.

API reference

PropTypeDefaultDescription
size?Ramp | 'caption''body'
weight?'regular' | 'medium' | 'semibold' | 'bold'-
color?'primary' | 'secondary' | 'tertiary' | 'accent'-
value?number-
format?Intl.NumberFormatOptions-
suffix?string-

Also accepts every attribute of the rendered element, plus as, xstyle and animate. Raw style and className are refused.

Related components