nexus-ui

Interactive Starfield Hero

Heroes 85

About

Dark hero section with a cursor-reactive canvas starfield where glowing particles stretch, brighten, and rotate toward the pointer.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Interactive Starfield Hero to your project and fits it to your theme.

Code

How Interactive Starfield Hero is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { InteractiveStarfieldHero } from "@/components/ui/starfield-hero";

const settings = {
  particleCount: 300,
  interactionRadius: 140,
  speed: 0.5,
  particleColor: "#60a5fa",
  activeColor: "#ffffff",
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen">
      <InteractiveStarfieldHero
        {...s}
        className="h-full min-h-full rounded-none"
      />
    </div>
  );
}

Dependencies

More by nexus-ui

View all
  • Circular Carousel

    Circular Carousel

    1.2K
  • Images Badge

    Images Badge

    963
  • Chat Messages

    Chat Messages

    295
  • Shooting Stars Grid

    Shooting Stars Grid

    156
  • Infinite Moving Cards

    Infinite Moving Cards

    146
  • Cinematic Logo Cloud

    Cinematic Logo Cloud

    145
  • Logo Clouds

    Logo Clouds

    101
  • Image Trail

    Image Trail

    83

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

    919
  • HeroSectionWithGradient

    HeroSectionWithGradient

    334
  • Editorial Collage Hero

    Editorial Collage Hero

    425
  • Hero 03

    Hero 03

    313
  • Glass Fold

    Glass Fold

    194