About
The component retains the core functionality of the starfield animation, including props for customization, and uses React with a canvas element for rendering.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Starfield to your project and fits it to your theme.
Code
How Starfield is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Starfield } from "@/components/ui/starfield-1";
export default function DemoOne() {
return (
<div className="relative flex h-screen w-full flex-col items-center justify-center overflow-hidden">
<Starfield/>
<span className="pointer-events-none z-10 text-center text-7xl leading-none font-semibold tracking-tighter whitespace-pre-wrap text-white">
Starfield
</span>
</div>
)
}















