TOC Minimap

Navigate page headings with a compact, hoverable minimap.

Installation

pnpm dlx shadcn-svelte@latest add http://sveltekit-prerender/r/toc-minimap.json

Usage

usage.svelte

Examples

Static items

Provide the minimap items directly for known headings.

Generated from headings

Generate minimap items from the headings rendered inside an article.