Skip to content

    Browse components

    Flood Pills

    Pill navigation whose items flood with a rising circle of color on hover, with a sliding active dot and a compact menu on narrow containers.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/flood-pills

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/flood-pills.json

    Usage

    import { FloodPills } from "@/components/ui/flood-pills";
    
    <FloodPills
      logo={<span>nº</span>}
      items={[
        { label: "Home", href: "/" },
        { label: "Work", href: "/work" },
        { label: "Contact", href: "/contact" },
      ]}
    />

    Props

    PropTypeDefaultDescription
    itemsReactNode—Array of { label, href }.
    logoReactNode—Brand mark shown at the left.
    fillColorstring"#c6ff3d"Color of the circle that floods a pill on hover.
    fillTextColorstring"#0a0a0a"Label color on top of the fill.
    durationnumber0.5Fill duration in seconds.
    defaultActiveIndexnumber0Initially active item when uncontrolled.
    activeIndexReactNode—Controlled active index.
    onItemClickReactNode—(item, index) => void
    classNamestring—Extra classes for the root element.