Installation
Add the component with the registry CLI, or copy the source when the project keeps its own primitives.
Prerequisites
The project needs Tailwind CSS v4 and the shared theme tokens before any component renders correctly.
Installation steps
Run the install command, import the recipe stylesheet once, and wrap the app in a skin.
Configuration
Every visual decision is a knob, so a skin can restyle the component without touching its markup.
Knobs
Knobs are registered custom properties with typed initial values and inheritance.
Colors
Author colors in oklch and derive states with relative color syntax.
Motion
Durations come from shared tokens, so reduced-motion settings apply everywhere at once.
Skins
A skin groups knob values under a data attribute and can be swapped at runtime.
Usage
Pass items whose hrefs match the heading IDs in the document; the navigation tracks them while scrolling.
Custom indicator
Any node passed as indicator travels along the rail to the section being read.