SuperDoc ships built-in UI for the toolbar, comments panel, and tracked-change review. When you need your own design system, your own layout, or your own workflow,Documentation Index
Fetch the complete documentation index at: https://docs.superdoc.dev/llms.txt
Use this file to discover all available pages before exploring further.
superdoc/ui gives you the state and actions to drive it.
The layer model
Three layers, each with one job:| Layer | What it is | When you reach for it |
|---|---|---|
Document API (editor.doc.*) | Stateless request/response contract. Runs in the browser and on the server. | Read or mutate document content. |
superdoc/ui | Browser-only UI controller. Subscriptions, viewport geometry, per-command state. | Bind your UI to live editor state. |
| Built-in modules | Optional UI SuperDoc renders for you. | You want SuperDoc’s UI as-is. |
superdoc/ui is what your UI subscribes to. Built-in modules are SuperDoc’s own consumer of those layers. Turn them off when you’re providing your own.
What it looks like
bold flips active or disabled.
What’s in this section
React setup
Provider, onReady, hooks. The scaffolding every page below builds on.
Toolbar and commands
Wire your buttons to bold, italic, lists, undo, redo, and every other built-in command.
Custom commands
Register your own commands. Override built-ins. Drive AI actions, clause inserts, business logic.
Comments
Custom comments sidebar with the typed selection-capture flow.
Track changes
Custom tracked-change review panel. Accept, reject, navigate.
Selection and viewport
Read the selection. Scroll an entity into view. Capture selections that survive focus changes.
Document control
Switch between editing and suggesting. Export to DOCX. Replace the open file.

