Notes · 6 min
One article, four renderers
A callout is a small thing, but the moment an article leaves its page it has to survive a feed reader, a newsletter and an editor’s preview pane.
Terminal
npm install @postkit/reactPostkit 0.3 · Works with your design system ›
Give your writing callouts, code, figures and 35 more without building any of them. Each post looks right on your site, in your newsletter and in your editor, from one plain-text file.
Notes · 6 min
One article, four renderers
A callout is a small thing, but the moment an article leaves its page it has to survive a feed reader, a newsletter and an editor’s preview pane.
Terminal
npm install @postkit/react<Callout tone="tip" title="Keep the content"> Change the renderer without changing the article. </Callout>
:::postkit-callout{tone="tip" title="Keep the content"}
Change the renderer without
changing the article.
:::Typos fail the build, not the reader, with the file and line to fix.
Install a renderer
Pick your kits
Write
The file stays plain text.
import { createPostkit } from '@postkit/react'
import { article, technical } from '@postkit/react/kits'
export const postkit = createPostkit({
kits: [article, technical],
})npm install @postkit/reacttheme.ts
variant: 'outline' variant: 'subtle'@postkit/react
Semantic markup and the named parts, with a quiet stylesheet you can keep or replace with your own CSS.
Rungs 1–3
Style
Match your brand with the CSS or theme you already have.
Rungs 4–5
Override
Set house defaults once, and every writer gets them.
Rungs 6–7
Replace
Own any component outright with postkit eject.
Rungs 8
Extend
Add your own and get Markdown support and validation for free.
npm install @postkit/reactOr @postkit/chakra for the Chakra views. Works with Next.js, React Router, TanStack Router and Astro.