Introduction
Build rich-text editors with headless React plugins, copied UI components, and version-matched agent docs.
Plate is a React rich-text editor framework with a headless plugin runtime (platejs) and app-local Plate UI components you install through the shadcn CLI and own in your codebase.
Core loop
Add a starter editor with the shadcn CLI, or drop directly into the headless React hooks:
Every Plate editor follows the same three-part React loop: create an editor with your plugin kits, wrap it in <EditorRoot>, and render <EditorContent />:
'use client';
import { EditorContent, EditorRoot, useCreateEditor } from 'platejs/react';
import { BasicBlocksKit } from '@/components/editor/basic-blocks';
import { BasicMarksKit } from '@/components/editor/basic-marks';
export function MyEditor() {
const editor = useCreateEditor({
initialValue: [{ children: [{ text: 'Hello Plate.' }], type: 'paragraph' }],
plugins: [...BasicBlocksKit, ...BasicMarksKit],
});
return (
<EditorRoot editor={editor}>
<EditorContent placeholder="Type..." />
</EditorRoot>
);
}'use client';
import { EditorContent, EditorRoot, useCreateEditor } from 'platejs/react';
import { BasicBlocksKit } from '@/components/editor/basic-blocks';
import { BasicMarksKit } from '@/components/editor/basic-marks';
export function MyEditor() {
const editor = useCreateEditor({
initialValue: [{ children: [{ text: 'Hello Plate.' }], type: 'paragraph' }],
plugins: [...BasicBlocksKit, ...BasicMarksKit],
});
return (
<EditorRoot editor={editor}>
<EditorContent placeholder="Type..." />
</EditorRoot>
);
}Building with Claude Code, Codex, or Cursor? Open Agents for the one-click setup prompt, local node_modules/platejs/dist/docs/ pointer, plate skill, and shadcn MCP config.
What Plate owns
| Layer | What it owns | Start here |
|---|---|---|
platejs | Core editor runtime, React bindings, and editor APIs. | Installation |
platejs/* subpaths | Headless plugins for nodes, marks, serialization, collaboration, AI, and editor behavior. | Plugins |
| Plate UI registry | Copied UI components, kits, editor presets, and API routes installed via the shadcn CLI. | Components |
| Your app | Copied component markup, styling, routing, persistence, and product rules. | Plugin Components |
Next steps
Build with agents
Copy a stack setup prompt, configure version-matched local docs, and connect shadcn MCP.
Installation
Choose Plate UI, Next.js, React, RSC, Node.js, or headless manual setup.
Plugins
Compose blocks, marks, tables, mentions, collaboration, AI, and Markdown or DOCX codecs.
Components
Inspect copied editor containers, toolbars, toolbar buttons, and node elements.
Pro and Business
Every platejs package, plugin, codec, and copied UI kit stays MIT open source. For teams shipping full workspaces faster, Plate Pro adds the Potion and Paper flagship templates, copy-owned @plate-pro/* slices, and self-host deploy and upgrade skills. For regulated apps, Plate Business adds self-hosted @plate-business/security-kernel, @plate-business/compliance-pdf, and plate verify CI on your own infrastructure. See Pricing.