componentry

Particle Galaxy

Component 40

About

An interactive 3D spiral galaxy of shader-rendered particles you can drag to rotate, scroll to zoom, and customize with color, glow, and density controls.

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

Code

How Particle Galaxy is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { ParticleGalaxy } from "@/components/ui/particle-galaxy";

const settings = {
  particleCount: 10000,
  particleSize: 0.02,
  rotationSpeed: 0.001,
  spiralArms: 3,
  spread: 2.5,
  density: 0.7,
  glow: 60,
  autoRotate: true,
  pulsate: true,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen bg-black">
      <ParticleGalaxy {...s} />
    </div>
  );
}

Dependencies

More by componentry

View all
  • Scroll Choreography

    Scroll Choreography

    1K
  • Collection Surfer

    Collection Surfer

    823
  • Liquid Glass Carousel

    Liquid Glass Carousel

    471
  • Wheel Carousel

    Wheel Carousel

    432
  • Animated Gradient

    Animated Gradient

    380
  • Circuit Board

    Circuit Board

    166
  • Infinite Image Field

    Infinite Image Field

    110
  • Magnetic Dock

    Magnetic Dock

    108