Component docs
Loading
import { MarkdownProse } from "@pixxl-tools/components";
// In Server Components:
import { MarkdownProse } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
density | "compact" | "comfortable" | — | — |
measure | boolean | true | Cap text blocks (paragraphs, lists, headings, quotes) at a readable line length, --pixxl-size-prose (68ch), while code, tables and media keep the full width (default true). false lets text span the container. Override the length with the --pixxl-prose-measure custom property. |
density"compact" | "comfortable"
measuredefault trueboolean
Cap text blocks (paragraphs, lists, headings, quotes) at a readable line length, --pixxl-size-prose (68ch), while code, tables and media keep the full width (default true). false lets text span the container. Override the length with the --pixxl-prose-measure custom property.
Typography, code, tables, and media inherit Pixxl styles.
function RenderedMarkdown() {
return <p>Rendered <strong>Markdown</strong>.</p>;
}
<MarkdownProse><RenderedMarkdown /></MarkdownProse>