Skip to content

    Browse components

    Sweep Menu

    Menu button that sweeps staggered colored layers across the screen before a panel of oversized links rises into place.

    Open
    Customize

    right
    left

    Installation

    npx shadcn@latest add @glint-ui/sweep-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/sweep-menu.json

    Usage

    import { SweepMenu } from "@/components/ui/sweep-menu";
    
    <SweepMenu
      logo={<span>forma.</span>}
      items={[
        { label: "Work", href: "/work" },
        { label: "Studio", href: "/studio" },
        { label: "Contact", href: "/contact" },
      ]}
      socials={[{ label: "Instagram", href: "https://instagram.com" }]}
    />

    Props

    PropTypeDefaultDescription
    itemsReactNode—Array of { label, href }.
    socialsReactNode—Small links at the bottom of the panel.
    logoReactNode—Brand shown at the top left.
    layerColorsstring[]["#c6ff3d","#5b3df5"]Colors of the layers that sweep in before the panel.
    accentColorstring"#5b3df5"Numbers, hover and icon color.
    side"right" | "left""right"Edge the panel slides in from.
    numberedbooleantrueShow 01, 02… next to each link.
    staggernumber0.08Seconds between each layer and link.
    position"fixed" | "absolute""fixed"`absolute` renders inside the nearest positioned parent.
    defaultOpenbooleanfalseStart open.
    onOpenChangeReactNode—(open: boolean) => void
    classNamestring—Extra classes for the root element.