Components
Rail Nav
A compact right-side rail navigation for long docs, case studies, and portfolio pages with scroll-aware active states.
interactivenavigationdocsmotionaccessibility
Installation
$npx shadcn@latest add https://ui.navdeepsingh.dev/r/rail-nav.jsonAPI Reference
| Prop | Type | Default | Description |
|---|---|---|---|
items | RailNavItems[] | - | Section links rendered in the rail. Each item is { label, href } where href is a hash anchor. |
className | string | '' | Classes merged onto the outer aside wrapper. |
Customization
- Pass
classNameto restyle the component. Classes are merged withcn, so your utilities win. - Styling uses Tailwind utility classes and theme tokens, so it adapts to light/dark mode automatically.
- Tune behavior with the props in the API reference above, for example
items.