Skip to content
shadcn.io
shadcn.io is not affiliated with official shadcn/ui

Shadcn Prose for React and Tailwind

Typography styles for HTML content.

Installation

bunx --bun shadcn@latest add https://kit.dev/r/prose.json

Usage

import { Prose } from "@/components/ui/prose";
<Prose>
  <h1>Garlic bread with cheese: What the science tells us</h1>
  <p>
    For years parents have espoused the health benefits of eating garlic bread with cheese to their children, with the
    food earning such an iconic status in our culture that kids will often dress up as warm, cheesy loaf for Halloween.
  </p>
  <p>
    But a recent study shows that the celebrated appetizer may be linked to a series of rabies cases springing up around
    the country.
  </p>
</Prose>

Undo prose styles

Use the not-prose class in a child to exclude it from prose styles. Useful when using components to avoid unwanted styles.

Examples

H1

H2

H3

H4

H5

H6

Paragraph

Blockquote

Table

List

Ordered list

Media

Kbd

Inline code

Separator

Definition list

Details

Mark

Small

API Reference

Prose

Root wrapper for typography-styled content.

PropTypeDefault
classNamestring-
asChildbooleanfalse