Prose

A Tailwind typography wrapper for raw HTML or MDX that styles headings, muted paragraphs, links, lists, inline code and blockquotes at a readable measure.

src/registry/ui/prose.tsx/r/prose.json

Installation#

bash
npx shadcn@latest add @minidev/prose

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/prose.json

Usage#

tsx
import { Prose } from "@/components/ui/prose"

export function Example() {
  return (
    <Prose>
      <p>Prose styles for docs and long-form content with <a href="#">links</a>.</p>
    </Prose>
  )
}

API reference#

Also accepts every prop of <div>, passed through to the root element.

Examples#

All layout components

Learn more