Fold Index

An "On this page" index whose line folds toward the active item. Scroll-spy follows the page (or any scrollable container), the accent line bends, stretches and can carry a bead, and hover can add a lighter secondary fold, a magnet lean, a travelling ripple and a glow. Items can be passed explicitly or auto-collected from page headings with a CSS selector. Dark/light via Tailwind dark: variants; honors prefers-reduced-motion.

Getting started

Drop the component into any docs layout. The rail measures your headings and draws the folding line automatically — no wiring needed beyond the items list.

The fold

The accent line bends toward the active entry. Pick curve, notch, round or wave, and give it a spring — liquid makes the fold feel like it's riding a wave.

Shapes

Four profiles: a soft bend, a paper-fold notch, a tight bulge, and a bend with a ripple tail.

Physics

The fold stretches with travel speed, so fast jumps look elastic and short hops stay crisp.

Scroll spy

Scroll this column and watch the bead ride the fold to whichever section is on top. Works on the window or any scrollable container.

Hover effects

Rest your cursor on the list — a lighter fold follows each item, the whole line leans toward the pointer, ripples travel the wire, and the accent glows.

Theming

Every part is overridable through classNames — track, hover line, accent, items and the active state all take your own colors for light and dark.

Checking access

Checking your plan access…