Skip to content

    Browse components

    Cobweb

    A spider web of silk threads swaying in a breeze; the cursor stretches them and they ripple as they spring back.

    Cobweb

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/cobweb

    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/cobweb.json

    Usage

    import { Cobweb } from "@/components/ui/cobweb";
    
    <div className="relative h-96">
      <Cobweb spokes={18} rings={16} />
    </div>

    Props

    PropTypeDefaultDescription
    spokesnumber18Number of radial threads.
    ringsnumber16Rings between hub and edges.
    colorstring"#a1a1aa"Idle silk color.
    activeColorstring"#67e8f9"Color of stretched, vibrating threads.
    radiusnumber140Px radius the cursor pushes within.
    speednumber1Ambient breeze speed.
    classNamestring—Extra classes for the root element.