How to build an accessible Text in React

Renders the chosen native element (p/span/div) without imposing roles; muted styling keeps contrast within AA so secondary text stays readable

When to use a Text

When not to use it

Accessibility

Role paragraph, verified at WCAG 2.2-AA.

Common mistakes

Avoid: <Text size="lg" weight="semibold"> used as a page title

Prefer: <Heading level={1}>

Visually-large Text has no heading semantics, so it is missing from the document outline

Example

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

See the full Text reference →