Skip to content

    Browse components

    Fizz Menu

    A pill navbar whose toggle bursts into a cloud of springy bubble links that pop in one after another.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/fizz-menu

    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/fizz-menu.json

    Usage

    import { FizzMenu } from "@/components/ui/fizz-menu";
    
    <FizzMenu
      logo={<span>acme</span>}
      items={[
        { label: "Home", href: "/", color: "#3b82f6" },
        { label: "About", href: "/about", color: "#10b981" },
      ]}
    />

    Props

    PropTypeDefaultDescription
    itemsReactNode—Array of { label, href, color? }.
    logoReactNode—Content of the left pill.
    position"fixed" | "absolute""fixed"`absolute` renders inside the nearest positioned parent.
    staggernumber0.07Seconds between bubbles.
    tiltnumber6Max resting tilt in degrees.
    fontSizenumber34Label size in px.
    defaultOpenbooleanfalseStart open.
    classNamestring—Extra classes for the root element.