Skip to main content

Prose

Longform wrapper that styles CMS/markdown HTML with the Prism rhythm.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

Longform wrapper that styles CMS/markdown HTML with the Prism rhythm.

Accessibility​

Use semantic elements (as/level) so structure—not just size—conveys hierarchy. Respect the reader’s line-length and contrast settings.

Install and import​

npx shadcn@latest add @prism/prose
import { Prose } from '@/components/prism/Prose';

In a no-build prototype, read it from the bundle instead: const { Prose } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
htmlstring—Trusted HTML string (e.g. rendered markdown). Mutually exclusive with children.
childrenReact.ReactNode—
classNamestring—