GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - theisel/astro-toc: A flexible Table of Contents (ToC) generator component for Astro. Perfect for blogs, documentation, or any content-rich page which benefits from in-page navigation

BranchesTags
Open more actions menu

Latest commit

 

History

38 Commits
38 Commits

Folders and files

NameName
Last commit message
Last commit date
.changeset
.changeset
 
 
.github/workflows
.github/workflows
 
 
.husky
.husky
 
 
demo
demo
 
 
packages/astro-toc
packages/astro-toc
 
 
.commitlintrc
.commitlintrc
 
 
.gitignore
.gitignore
 
 
.lintstagedrc
.lintstagedrc
 
 
.prettierrc
.prettierrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
logo.svg
logo.svg
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 

Repository files navigation

astro-toc logo

astro-toc

npm build license

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 use prop.
  • 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:

View Package README →

 

🚀 Demo

Give astro-toc a try on:

Open in StackBlitz Open in CodeSandbox

 

📄 License

Licensed under the ISC License.

About

A flexible Table of Contents (ToC) generator component for Astro. Perfect for blogs, documentation, or any content-rich page which benefits from in-page navigation

www.npmjs.com/package/astro-toc

Topics

astroastro-componenttoctoc-generatoruiwithastro

Resources

Readme
ISC license
Activity

Stars

26 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.