Firefly Field

A dusky field of blinking fireflies that wander, then gather and circle wherever the pointer rests.

backgroundcanvasinteractivenight

Rest your cursor

Firefly Field

Usage

Drop the file into your project and import it. There is no package to install.

usage.tsx
import { FireflyField } from "@/registry/backgrounds/firefly-field";

export function Example() {
  return <FireflyField />;
}

Install prerequisites

Every component here relies only on Tailwind and the cn helper from shadcn/ui.

terminal
npm i clsx tailwind-merge

More in Backgrounds