Scrollspy

A component for tracking scroll position and updating active links.

Source code

Click to see the source code for this component on GitHub. Feel free to copy it and adjust it for your own use.

Installation

npx ui-thing@latest add scrollspy

Usage

Component

Section 1

Section 2

Section 3

Section 4

Section 5

Composable

Section 1

Section 2

Section 3

Section 4

Section 5

Horizontal

Section 1

Section 2

Section 3

Section 4

Section 5