sigilUI

Scroll Spy

Track the section currently visible in the viewport.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { ScrollSpy } from "@sigil-ui/components";

Usage

<ScrollSpy items={[{ href: "#preview", label: "Preview" }, { href: "#usage", label: "Usage" }]} />

CLI

npx @sigil-ui/cli add scroll-spy

Token Integration

ScrollSpy follows the Sigil component rules: styles resolve from var(--s-*), class names are mergeable through className, and the component is exported from @sigil-ui/components.