# Details Collapsible details blocks with a summary and a toggle control. ## Installation ```bash npx shadcn@latest add litingyes/blocove/rich-text-editor-details ``` > 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 ### EditorDetails Registers the details, summary and content nodes with a React node view. The open state is stored on the node, so it persists in the document. | Prop | Type | Default | | --- | --- | --- | | `...options` | `Partial` | `{ persist: true }` | ### EditorDetailsToolbar Toolbar action that inserts a details block. | 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-details`