Library
Pill Navbar
Pill Navbar
Rounded pill-shaped navbar with animated active indicator sliding between items. Supports a primary CTA button variant for the last item.
navbarpillroundedminimal
Installation
bash
# Copy pill-navbar.tsx to your project
cp components/ui/pill-navbar.tsx your-project/components/ui/pill-navbar.tsxHow to use
tsx
import { PillNavbar } from "@/components/ui/pill-navbar";tsx
<PillNavbar
items={[
{ label: "Home" },
{ label: "About" },
{ label: "Contact" },
{ label: "Login", variant: "primary" },
]}
defaultActive="Home"
/>Dependencies
Exports
PillNavbarFile
components/ui/pill-navbar.tsxPreview
Click to switch active tab
Minimal variant
Pill Navbar
Rounded pill-shaped navbar with animated active indicator sliding between items. Supports a primary CTA button variant for the last item.
navbarpillroundedminimal
Installation
bash
# Copy pill-navbar.tsx to your project
cp components/ui/pill-navbar.tsx your-project/components/ui/pill-navbar.tsxHow to use
tsx
import { PillNavbar } from "@/components/ui/pill-navbar";tsx
<PillNavbar
items={[
{ label: "Home" },
{ label: "About" },
{ label: "Contact" },
{ label: "Login", variant: "primary" },
]}
defaultActive="Home"
/>Dependencies
Exports
PillNavbarFile
components/ui/pill-navbar.tsx