Self-contained long-form typography for rendered markdown/MDX: headings, links, lists, code, tables, quotes and figures.
Design intent
Content sites need consistent article typography without depending on the Tailwind typography plugin. Prose styles rendered HTML via child selectors, so any remark/MDX pipeline can drop output inside.
npx @slipstream-ui/cli@latest add proseInstall the package
Add the core package, then wrap your app in the theme provider. See the theming guide.
pnpm add @slipstream-ui/core- Stateless components
- Machine-readable manifests
Your AI reads the spec, not the source.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | 'sm' | 'md' | 'lg' | 'md' | Type scale for body and headings. |
Anti-patterns
validate_usage is the MCP tool that rejects these mistakes: the same list agents see over MCP and in the canonical markdown.
Don't use prose for app UI
Prose targets article content; forms and dashboards use Text/Heading.
tsx// Avoid<Prose><Button /></Prose>
Accessibility
- Heading anchors carry scroll-mt offsets for sticky headers.
- Links keep the primary color and underline for recognition.
Content guidelines
Article copy
- Sentence case headings
- Short paragraphs
Good examples
- ## Install the package
Bad examples
- ## CLICK HERE
Composition
Compose with TableOfContents: Pair long articles with a TOC + useScrollSpy
<Prose>{content}</Prose><TableOfContents headings={headings} />
Related components: TableOfContents, Heading, Text, CodeBlock
Dependencies
What the registry installs alongside this component. Package imports already include these.
npm packages
- class-variance-authority
- clsx
- tailwind-merge
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.