Text
Inline text or a formatted animated number.
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
| Prop | Type | Default | Description |
|---|---|---|---|
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
TextFieldNative text input over `fill`, the field in a form or a sheet. Any `type` works, including `date`, `time` and `datetime-local`; `multiline` swaps in a textarea. Supply a visible label or aria-label.TitleFixed app header, or its compact trailing accessories. Use as="h1" for a semantic heading.ToggleNative checkbox styled as the existing iOS switch. Supply a visible label or aria-label.