TableOfContents

“On this page”: one row per heading between hairlines; the heading in view in text color with an ink line above it, the others faded.

View source
import { TableOfContents } from "@logicplanes/kaeso-ui";

Props

  • active
    string

    Controlled active id; otherwise it follows the scroll position.

  • items
    TocItem[]

    The headings to list, with their depth.

  • title
    string

    Defaults to "On this page" in the provider's language.