Browse components
Blob Lamp
Glossy liquid blobs that drift, merge and split, with one that follows your cursor. Raw WebGL.
Blob Lamp
Installation
npx shadcn@latest add @glint-ui/blob-lampFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/blob-lamp.json
Usage
import { BlobLamp } from "@/components/ui/blob-lamp";
<div className="relative h-96">
<BlobLamp count={7} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| count | number | 7 | Wandering balls (plus the cursor ball). |
| color | string | "#c6ff3d" | Color at the top. |
| color2 | string | "#0ea5e9" | Color at the bottom. |
| speed | number | 1 | Motion speed multiplier. |
| size | number | 1 | Ball size multiplier. |
| followCursor | boolean | true | One ball tracks the cursor. |
| className | string | — | Extra classes for the root element. |