# Code Block Preformatted code blocks with a toolbar toggle. ## Installation ```bash npx shadcn@latest add litingyes/blocove/rich-text-editor-code-block ``` > Typography requires [shadcn/typeset](https://ui.shadcn.com/docs/typeset). Copy `typeset.css` next to your main stylesheet, import it after Tailwind and add the `.typeset-docs` preset. ## API Reference ### EditorCodeBlock Registers the code block node. Options pass through to the Tiptap extension. | Prop | Type | Default | | --- | --- | --- | | `...options` | `Partial` | - | ### EditorCodeBlockToolbar Toolbar toggle for the code block node. | Prop | Type | Default | | --- | --- | --- | | `className` | `string` | - | ## Registry dependencies - `litingyes/blocove/rich-text-editor` - `litingyes/blocove/rich-text-editor-extension` Namespace: `npx shadcn@latest add @blocove/rich-text-editor-code-block`