A flexible and customizable Table of Contents (ToC) generator component for Astro. Automatically builds nested navigation from your data, perfect for blogs, documentation, and content-rich sites.
✨ Features
- Generates semantic, nested lists (
ul,ol,menu). - Supports custom Astro components for rendering items via the
useprop. - Control over minimum (
depth) and maximum (maxDepth) levels shown. - Accepts standard HTML attributes (
class,data-*, etc.) for styling the container. - Fully typed with TypeScript.
📦 Package Documentation
astro-toc usage instructions, examples, and the full API reference can be found in its dedicated README:
🚀 Demo
Give astro-toc a try on:
📄 License
Licensed under the ISC License.