About
a beautiful interactive dynamics stars background
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Stars to your project and fits it to your theme.
Code
How Stars is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { StarsBackground } from "@/components/ui/stars";
const settings = {
speed: 50,
factor: 0.05,
starColor: "#ffffff",
stiffness: 50,
damping: 20,
};
export default function Demo(props: Partial<typeof settings>) {
const s = { ...settings, ...props };
return (
<div className="h-screen w-screen">
<StarsBackground
speed={s.speed}
factor={s.factor}
starColor={s.starColor}
transition={{ stiffness: s.stiffness, damping: s.damping }}
/>
</div>
);
}
















