Skip to content
CtrlK

ArdoTOC

On this page

The outline of the current page. It links to each heading and marks the section in view.

import { ArdoTOC } from "ardo/ui"

<ArdoTOC />

Props

NameTypeRequiredDescription
labelstringNoLabel for the TOC heading (default: "On this page")
collapsiblebooleanNoUse a native disclosure for the compact outline above an article.
source"metadata" | "dom"NoUse build-time metadata (default), or discover article headings after hydration.
scopestringNoDOM mode's content selector. Defaults to the article body, then #main-content.

Props type: ArdoTOCProps