Light Field

Motion

A WebGL shader background of drifting color silk with a soft cursor light and grain. It renders at half resolution, pauses offscreen and adapts to dark mode.

src/registry/premium/light-field.tsx/r/light-field.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/light-field.json

Usage#

tsx
import { LightField } from "@/components/ui/light-field"

export function Example() {
  return <LightField />
}

API reference#

LightField props
PropTypeDefault
classNamestring-
palette{ light?: Palette; dark?: Palette }-
All Animated React components