Skip to content

Prose

Styles the headings, text, lists, code and tables inside it, such as rendered Markdown.

Release notes

Deploys now roll out region by region, and a failed health check stops the rollout before it reaches every user. Read more in the rollouts guide.

  • Set rollout.regions to choose the order.
  • Pause a rollout from the dashboard at any time.
Existing projects keep deploying everywhere at once until they opt in.

Installation

  1. Add the registryOnce per project
  2. Add prose

Usage

Wrap content whose elements you don't write yourself, such as the HTML that a Markdown renderer or a CMS returns.

Prose styles its direct children and the text inside them, so a component placed in it, or anything marked not-prose, keeps its own styles. Its rules add no specificity, so a class on an element inside it takes precedence.

A table fills the width and wraps long words in its cells, but one with many columns can still overflow on a phone. Wrap it in a Scroll Area, as Markdown does, so it scrolls horizontally instead.

Examples

With components

Press ⌘K to search the shortcuts.

This link keeps the page's own styles.

Props

Base UI's styling (opens in a new tab) and composition (opens in a new tab) guides say more about className, style and render.

Prose