pnpm dlx shadcn@latest add @saturation-ui/markdownTailwind v4 — Source Scanning
The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:
@source "../components";This ensures all utility classes in CVA variants and data attribute selectors are included in your build.
import { Markdown } from "@/components/ui/markdown"<Markdown>{"## Production notes\n\n- Camera confirmed"}</Markdown>Raw HTML is disabled by default. Only enable allowRawHtml for content that has already crossed a trusted sanitization boundary.
| Prop | Type | Default | Description |
|---|---|---|---|
children* | string | null | undefined | — | Markdown source to render. |
components | react-markdown Components | — | Element renderer overrides. |
allowRawHtml | boolean | false | Allows trusted raw HTML through rehype-raw. Keep disabled for untrusted content. |
className | string | — | Additional classes for the root container. |
On This Page
See the budget for current totals.