Prose
Longform wrapper that styles CMS/markdown HTML with the Prism rhythm.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen 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
| Prop | Type | Required | Description |
|---|---|---|---|
html | string | — | Trusted HTML string (e.g. rendered markdown). Mutually exclusive with children. |
children | React.ReactNode | — | |
className | string | — |