pnpm dlx shadcn@latest add @gammaui/plasma
The Plasma component renders an animated shader background using WebGL.
It dynamically adapts to the size of its container — making it perfect for embeds, hero sections, or preview boxes.
| Prop | Type | Default | Description |
|---|---|---|---|
| (none) | — | — | The Plasma component currently takes no props. It automatically fits its parent container and adapts to resizing. |
<div className="fixed inset-0">
<Plasma />
</div>ResizeObserver.div with a fixed height) — it auto-fills the available space.bgColor1, bgColor2, or lineColor inside the fragment shader for unique looks.