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
Installation
npx shadcn@latest add @glint-ui/cobwebFirst 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
| Prop | Type | Default | Description |
|---|---|---|---|
| spokes | number | 18 | Number of radial threads. |
| rings | number | 16 | Rings between hub and edges. |
| color | string | "#a1a1aa" | Idle silk color. |
| activeColor | string | "#67e8f9" | Color of stretched, vibrating threads. |
| radius | number | 140 | Px radius the cursor pushes within. |
| speed | number | 1 | Ambient breeze speed. |
| className | string | — | Extra classes for the root element. |