Aller au contenu
CtrlK

ArdoTOC

Sur cette page
Cette référence API est générée à partir des commentaires TypeScript en anglais. Les noms, signatures et exemples correspondent au paquet publié.

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