Ali Imam

Space Background

Heroes 352

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