Files
supabase/apps/design-system/content/docs/fragments/toc.mdx
Francesco Sansalvadore d24df14aab Feat/toc component (#33964)
* test fuma toc

* make toc work

* ok toc

* ui-patterns toc

* fix types

* cleanup

* fix overflow issues

* cleanup

* fix loading w

* Update apps/docs/components/GuidesTableOfContents.tsx

* fix prettier

* format

* install deps

* target ES2018

* tweak regex

* update docs test snapshots

* fix useSubscribeTocRerender
2025-03-05 23:10:02 +01:00

19 lines
393 B
Plaintext

---
title: Table of Contents (TOC)
description: List of page anchors for the current page.
component: true
fragment: true
---
## Usage
Highlight one or more elements of the TOC if in view.
<ComponentPreview name="toc-demo" description="" peekCode wide />
## Single=true
Highlight one element of the TOC at a time.
<ComponentPreview name="toc-single-demo" description="" peekCode wide />