Headless Composition
ExamplesCompose a custom authoring surface with BlockTree, BlockToolbar, document versions, and working undo/redo controls.
Edit headings, paragraphs, and a callout with Editor, defaultCatalog, and an in-memory document store.
Change the width and theme, then interact with the components.
bun add @reopt-ai/opt-editorimport { Editor, createEditorStore, defaultCatalog, type EditorSpec } from "@reopt-ai/opt-editor";Compose a custom authoring surface with BlockTree, BlockToolbar, document versions, and working undo/redo controls.
A calm writing workspace with block editing, nested pages, page mentions, search, favorites, templates, local autosave, comments, Trash, and Markdown export.
Edit a document, undo and redo changes, save in-memory snapshots, preview saved content, and restore any version as one undoable change.