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
| Name | Type | Required | Description |
|---|---|---|---|
label | string | No | Label for the TOC heading (default: "On this page") |
collapsible | boolean | No | Use a native disclosure for the compact outline above an article. |
source | "metadata" | "dom" | No | Use build-time metadata (default), or discover article headings after hydration. |
scope | string | No | DOM mode's content selector. Defaults to the article body, then #main-content. |
Props type: ArdoTOCProps