Browse components
Plasma
Smooth, glossy plasma flowing through a three-color palette; the cursor twists it into a whirlpool. WebGL.
Plasma
Installation
npx shadcn@latest add @glint-ui/plasmaFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/plasma.json
Usage
import { Plasma } from "@/components/ui/plasma";
<div className="relative h-96">
<Plasma colorA="#6d28d9" colorB="#ec4899" colorC="#06b6d4" />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| colorA | string | "#6d28d9" | First palette color. |
| colorB | string | "#ec4899" | Second palette color. |
| colorC | string | "#06b6d4" | Third palette color. |
| speed | number | 1 | Animation speed multiplier. |
| scale | number | 1 | Pattern zoom. |
| mouseStrength | number | 1 | Cursor twist strength. |
| className | string | — | Extra classes for the root element. |