Bundui.io

Stars

Heroes 536

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>
  );
}

Dependencies

More by Bundui.io

View all
  • Fluid particles background

    Fluid particles background

    758
  • Floating paths

    Floating paths

    638
  • Text Gradient Scroll

    Text Gradient Scroll

    614
  • Image Comparison

    Image Comparison

    429
  • Magnetic Button

    Magnetic Button

    402
  • Marquee Effect

    Marquee Effect

    318
  • Wavy

    Wavy

    195
  • Geometric

    Geometric

    130

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.4K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Hero

    Hero

    1.2K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    932
  • Editorial Collage Hero

    Editorial Collage Hero

    431
  • Glass Fold

    Glass Fold

    213
  • HeroSectionWithGradient

    HeroSectionWithGradient

    336
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    285