Text

Body text with size, weight, and muted variants

Category: display · WCAG 2.2-AA · typography, text, paragraph, body

Variants

Sizes

Props

PropTypeDefaultDescription
as'p' | 'span' | 'div'pThe HTML element to render as.
size'sm' | 'md' | 'lg'mdVisual size of the component (e.g. 'sm', 'md', 'lg').
weight'normal' | 'medium' | 'semibold'normalFont weight ('normal' | 'medium' | 'semibold').
mutedbooleanfalseWhen true, renders in a muted/subtle color.

Design tokens

When to use

When not to use

How to build an accessible Text in React →

Examples

Default

<Text>Body copy reads at the base size.</Text>

Muted helper

<Text size="sm" muted>Secondary information</Text>

Inline span

Use as="span" inside other flow content

<Text as="span" weight="semibold">emphasis</Text>

Related components

← Back to docs