Skip to content

    Browse components

    Bob Shapes

    Rows of small circles, squares and triangles bobbing and turning in rolling waves; they swell near the cursor. WebGL.

    Bob Shapes

    Open
    Customize

    mixed
    circle
    square
    triangle

    Installation

    npx shadcn@latest add @glint-ui/bob-shapes

    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/bob-shapes.json

    Usage

    import { BobShapes } from "@/components/ui/bob-shapes";
    
    <div className="relative h-96">
      <BobShapes shape="mixed" cellSize={32} />
    </div>

    Props

    PropTypeDefaultDescription
    colorAstring"#f472b6"Color on the left.
    colorBstring"#60a5fa"Color on the right.
    speednumber1Animation speed multiplier.
    shape"mixed" | "circle" | "square" | "triangle""mixed"Shape to draw; mixed alternates by row.
    cellSizenumber32Grid spacing in px.
    amplitudenumber1How far shapes bob.
    mouseStrengthnumber1How much shapes swell near the cursor.
    classNamestring—Extra classes for the root element.