TableOfContentsPanel component renders a vertical list of heading links in the right sidebar with active-state tracking. It highlights the currently visible section as the user scrolls.123<Aside full> <TableOfContentsPanel /> </Aside>
TableOfContentsPanel to any page. You can also use both: place the AI widget and the TOC panel in the same <Aside full> and they stack vertically.123<Aside full> <TableOfContentsPanel /> </Aside>
##, ###, and deeper heading on the page, indented by depth.TableOfContentsPanel, Holocron detects it at build time and hides that inline list — the same headings would otherwise appear twice, once in each sidebar.sidebarToc frontmatter field:123456--- title: My Page # true: show sidebar headings even with a TableOfContentsPanel present # false: hide sidebar headings on any page, panel or not sidebarToc: true ---
title prop. Defaults to "On this page".123<Aside full> <TableOfContentsPanel title="Contents" /> </Aside>
123<Aside full> <TableOfContentsPanel /> </Aside>
1234567import Toc from '/snippets/toc.md' <Toc /> ## First heading Content here...
titlestringheadingsNavHeading[]slug, text, and depth fields.classNamestring<nav> element.