Component docs
Loading
import { Prose } from "@pixxl-tools/components";
// In Server Components:
import { Prose } 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.
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
Use prose for docs, notes, and formatted app copy.
<Prose><p>Content</p></Prose>