Pill Nav
Segmented navigation with a sliding pill that follows the pointer and rests on the current page.
Installation
pnpm dlx shadcn@latest add @portfolio-kit/pill-navFirst time? Add the @portfolio-kit registry to components.json
components.json
{
"registries": {
"@portfolio-kit": "https://www.parthjadhav.com/products/portfolio-kit/r/{name}.json"
}
}Usage
Examples
With Icons
Put a lucide icon before each label. It is sized and aligned for you.
In a Header
The ghost variant drops the track so the nav sits lightly in a header bar. On narrow screens it scrolls sideways and keeps the current page in view.