Skip to content

    Browse components

    Motion Grid

    A grid of tiles that shrink, spin and flash in rolling waves radiating from whichever tile you click.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/motion-grid

    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/motion-grid.json

    Usage

    import { MotionGrid } from "@/components/ui/motion-grid";
    
    <MotionGrid rows={9} cols={15} />

    Props

    PropTypeDefaultDescription
    rowsnumber9Tile rows.
    colsnumber15Tile columns.
    gapnumber6Px between tiles.
    staggernumber45Ms of delay per tile of distance.
    durationnumber900Ms per tile wave.
    accentstring"#c6ff3d"Flash color as the wave passes.
    autoplaybooleantrueSend waves from random tiles on its own.
    classNamestring—Extra classes for the root element.