Saltar al contenido
CtrlK

ArdoTOC

En esta página
Esta referencia de la API se genera a partir de los comentarios de TypeScript en inglés. Los nombres, las firmas y los ejemplos corresponden al paquete publicado.

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