Skip to content

    Browse components

    Globe Menu

    Menu items wrapped around a sphere you drag to spin; it settles on the disc facing you and reveals its title.

    Open
    Customize

    Installation

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

    Usage

    import { GlobeMenu } from "@/components/ui/globe-menu";
    
    <div className="h-[32rem]">
      <GlobeMenu items={[{ image: "/a.jpg", title: "Aurora", description: "Northern lights", href: "/aurora" }]} />
    </div>

    Props

    PropTypeDefaultDescription
    itemsReactNode—Array of { image, title, description?, href? }.
    countnumber42Discs on the sphere; items repeat to fill it.
    itemSizenumber84Disc diameter in px.
    autoRotatebooleanfalseSlowly spin while idle instead of settling.
    classNamestring—Extra classes for the root element.