Introduction
Some intro copy here.
Installation
Steps to install.
Usage
How to use the component.
Auto-generated "On this page" sidebar that tracks the currently visible heading. Powers the right rail of every UI Library doc page.
Point it at a container; ScrollSpy finds h2-h6 inside and renders a sticky nav.
Some intro copy here.
Steps to install.
How to use the component.
Props, events, and slots for each sub-component.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| contentSelector | string | — | CSS selector for the container ScrollSpy walks for headings. |
| excludeSelector | string | "" | Skip headings whose closest match this selector (e.g. "[role=tabpanel]"). |
| showLabel | boolean | true | Show the 'On This Page' label above the nav. |
Events
| Event | Description |
|---|---|
| headings-found | Emitted on mount with the resolved headings array. |