Text
Running text as a span, div, label or paragraph, set on the theme's body scale, and in the size, weight and colour around it by default.
Usage
Examples
Sizes
size steps through the body scale from xs to 5xl, and without it the text keeps the size around it.
Weights
weight sets the text normal, medium or semibold, the kit's three weights, and without it the text keeps the weight around it.
Align
align sets the text at the start, the centre or the end of its box, and without it the text keeps the alignment around it, the start in running text.
Truncate
truncate keeps the text to one line and ends it with an ellipsis where it overflows, beside text that wraps as it does by default.
Muted
muted writes the text in the muted grey, for the quieter details around a title, beside text in the colour around it as it is by default.
As
as renders a p, label or div in place of the span it is by default, which changes the markup and leaves the look alone.
Content goes here, in a p.
API Reference
Text
TextProps · components/Text/Text.types.tsIt also takes the props of <span>, <div>, <label>, <p>.