@tiptap/react.
Draft notes
Headings, lists, quotes, and code blocks in the same document.
Add a block
Put your cursor on the empty line below and type / to choose a block.
Try it
Click the empty line and type/. Keep typing to filter: try /heading, /todo, or /quote. Use the arrow keys and Enter to insert a block, or click a result.
Commands
The menu calls Tiptap commands after removing the slash query. This small menu is custom to the example; it uses Tiptap’s public extension and ProseMirror APIs.block-commands.ts
Keyboard
An ordinary slash inside a sentence stays text. The menu does not open inside code blocks and closes when you leave the editor.
Command chaining · Document editor