How to build an accessible Prose in React

Adds no roles of its own — it styles descendant native elements, so the document semantics of the underlying HTML (headings, lists, code) are preserved for assistive tech

When to use a Prose

When not to use it

Accessibility

Role generic, verified at WCAG 2.2-AA.

Common mistakes

Avoid: Wrapping app UI (buttons, forms) in <Prose> for spacing

Prefer: Use layout primitives; reserve Prose for authored document content

Prose restyles all descendant HTML, which clobbers component styling and intent

Example

<Prose><h2>Install</h2><p>Run <code>npx cascivo init</code>.</p></Prose>

See the full Prose reference →