Skip to content

    Browse components

    Panorama Sphere

    Photos tiled across the inside of a sphere that you drag to look around, with inertia and click-to-enlarge.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/panorama-sphere

    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/panorama-sphere.json

    Usage

    import { PanoramaSphere } from "@/components/ui/panorama-sphere";
    
    <div style={{ height: 600 }}>
      <PanoramaSphere images={["/1.jpg", "/2.jpg", "/3.jpg"]} />
    </div>

    Props

    PropTypeDefaultDescription
    imagesReactNode—Array of image URLs (repeated across the dome).
    radiusnumber560Sphere radius in px.
    columnsnumber22Tiles around the circle.
    rowsnumber5Rows of tiles.
    gapnumber0.1Space between tiles (fraction of size).
    autoRotatenumber4Idle rotation in deg/s.
    dragSensitivitynumber0.18Degrees per px dragged.
    maxPitchnumber22Max up/down tilt in degrees.
    tileRadiusnumber14Tile corner radius in px.
    classNamestring—Extra classes for the root element.