# table of contents, 21st-inference-sh--inference-sh component by inference-sh

An auto-scrolling table of contents that highlights the active section using an intersection observer as the reader scrolls.

> Page: https://ui.eneawork.it/comp/21st-inference-sh--inference-sh/table-of-contents
> Markdown: https://ui.eneawork.it/comp/21st-inference-sh--inference-sh/table-of-contents.md

- Library: [21st-inference-sh--inference-sh](/components/lib/21st-inference-sh--inference-sh)
- HTML page: https://ui.eneawork.it/comp/21st-inference-sh--inference-sh/table-of-contents

## Install

```bash
npx shadcn@latest add "https://ui.eneawork.it/api/registry/21st-inference-sh--inference-sh/table-of-contents.json?token=YOUR_TOKEN"
```

The registry endpoints are token-gated (create a free account in the app, then copy the registry token). The raw source is also readable at `/api/registry/<library>/<name>.json`.
