Docs
Pill Nav

Pill Nav

Horizontal navigation with an animated pill indicator and optional badge support.

Installation

Usage

import { PillNav } from "@/components/pioneerui/pill-nav"
 
export default function Nav() {
  return (
    <PillNav
      items={[
        { value: "home", label: "Home" },
        { value: "explore", label: "Explore" },
        { value: "notifications", label: "Alerts", badge: 3 },
      ]}
      defaultValue="home"
      onChange={(value) => console.log(value)}
    />
  )
}

Props

PropTypeDefaultDescription
itemsPillNavItem[]Navigation items (required)
defaultValuestringfirst itemInitially active item
onChange(value: string) => voidundefinedChange callback
sizesm | md | lgmdNav size