Table of Contents Base Kit

Installation

No MCP yet? Connect your agent.

Add BaseTocKit to the editor's plugin array. The kit keeps its node renderers and feature plugins together.

import { createSlateEditor } from "platejs";
import { BaseTocKit } from "@/components/editor/plugins/toc-base-kit";

const editor = createSlateEditor({
  plugins: [...BaseTocKit],
});

Related items

Requires

  • A table of contents component with links to document headings.

    ReactTailwind