Ali Imam

Space Background

Heroes 350

About

Space Background with props

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

Code

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

Usage.tsx

import { SpaceBackground } from "@/components/ui/space-background";

export default function DemoOne() {
  return (
    <main className="relative min-h-screen flex items-center justify-center">
      <SpaceBackground particleCount={450} />

      {/* Content overlay */}
      <div className="relative z-10 text-center">
        <img
          src="https://cdn.21st.dev/assets/localized/2dc06bac80a527ef88f3ddd18d95f369f883692901dcc7d90bf3b45e07f7c3b7.png"
          alt="Logo"
          height={500}
          width={500}
          className="h-50 z-10 w-full object-contain"
        />
      </div>
    </main>
  );
}

More by Ali Imam

View all
  • Liquid Glass Button

    Liquid Glass Button

    6.7K
  • Shader Animation

    Shader Animation

    3.7K
  • WebGL Shader

    WebGL Shader

    2.6K
  • Shader Lines

    Shader Lines

    2.3K
  • Shiny Button

    Shiny Button

    2.2K
  • GLSL Hills

    GLSL Hills

    2.1K
  • Canvas

    Canvas

    1.8K
  • Glowing Shadow

    Glowing Shadow

    1.5K

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

    212
  • HeroSectionWithGradient

    HeroSectionWithGradient

    336
  • Aero Hero-3

    Aero Hero-3

    559