Bundui.io

Stars

Heroes 540

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

    766
  • Floating paths

    Floating paths

    646
  • Text Gradient Scroll

    Text Gradient Scroll

    617
  • Image Comparison

    Image Comparison

    429
  • Magnetic Button

    Magnetic Button

    403
  • Marquee Effect

    Marquee Effect

    320
  • Wavy

    Wavy

    198
  • Geometric

    Geometric

    131

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • SaaS Template

    SaaS Template

    2.4K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    952
  • Hero

    Hero

    1.3K
  • Editorial Collage Hero

    Editorial Collage Hero

    448
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    291
  • Aero Hero-3

    Aero Hero-3

    567
  • Hero Section with Responsive Navigation

    Hero Section with Responsive Navigation

    36