Skip to content
synccn

Prose

New

Typography for articles, docs and markdown output.

Designing calm interfaces

Calm software does its job and gets out of the way.

Start with defaults that work. Most people never change a setting, so the default is the design. When something needs attention, say what happened and what to do, like Retry upload instead of Error 500.

Three rules

  1. Show one primary action per screen.
  2. Name things the way people already talk about them.
  3. Use motion only to explain change.
The best interface is the one nobody has to think about.

Read more in the design principles.

Installation

$ pnpm dlx shadcn@latest add @synccn/prose

First time in this project? Connect synccn with one command.

Usage

import { Prose } from "@/components/ui/prose";<Prose><h1>Title</h1><p>…</p></Prose>

API reference

Generated from the component's TypeScript types, so it always matches the code.

Prose

Typography for long-form content (articles, docs, markdown output). Wrap rendered HTML or JSX and every element gets consistent styles.

  • children
    React.ReactNode

    Content to render.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

No ARIA roles, key handling or motion settings in its source. It renders plain elements, so its accessibility comes from the content and labels you give it.