stnd.buildSTANDARD MANUAL2026-09-20

TableOfContents

On this page

Refined floating reading rail & outline for articles and notes. Subtle, architectural tick marks that expand into a polished frosted-glass navigator on hover and highlight the reader’s current section.

Usage

import TableOfContents from "@stnd/ui/TableOfContents.astro";
<TableOfContents {headings} />

Props

Type Name Description
Heading[] headings The headings to show — typically extracted from rendered HTML.
number minHeadings? Minimum headings to show the TOC. Default: 2
number breakpoint? Breakpoint to hide on mobile. Default: 1100

Live example