WRAPCODERS

Quantal Particle Hero

Heroes

About

Focused 3D morphing particle hero with theme-aware canvas geometry, four shape modes, and reduced-motion support.

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

Code

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

Usage.tsx

import { useEffect } from "react";
import { QuantalParticleHero, type ParticleShape } from "@/components/ui/quantal-hero";

const settings = {
  initialShape: "torus" as ParticleShape,
  autoCycleShapes: true,
  particleCount: 2800,
  interactive: true,
  badgeText: "Quantal v2 Mainnet is live",
  headline: "Supercomputing for the on-chain economy.",
  primaryCtaLabel: "Get started",
  showFooterCredit: true,
};

export default function QuantalHeroDemo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };

  useEffect(() => {
    if (typeof window === "undefined") return;
    const themeParam = new URLSearchParams(window.location.search).get("theme");
    if (themeParam === "light") {
      document.documentElement.classList.remove("dark");
    } else if (themeParam === "dark") {
      document.documentElement.classList.add("dark");
    }
  }, []);

  return (
    <div className="flex min-h-screen w-full flex-col items-center justify-center bg-background px-4 py-8 text-foreground sm:px-6 lg:px-8">
      <div className="w-full max-w-6xl">
        <QuantalParticleHero
          badge={s.badgeText ? { text: s.badgeText, href: "#platform" } : undefined}
          title={s.headline}
          subtitle="Quantal connects high-performance computing to decentralized finance. Run heavy workloads and settle every result on-chain."
          primaryCta={{ label: s.primaryCtaLabel, href: "#get-started" }}
          secondaryCta={{ label: "How it works", href: "#how-it-works" }}
          particleCount={s.particleCount}
          initialShape={s.initialShape}
          autoCycleShapes={s.autoCycleShapes}
          interactive={s.interactive}
        />

        {s.showFooterCredit && (
          <footer className="mt-5 flex justify-center">
            <a
              href="https://21st.dev/@wrapcoders?ref=mdruhulhasan"
              target="_blank"
              rel="noopener noreferrer"
              className="rounded-sm text-xs text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
            >
              More by @wrapcoders
            </a>
          </footer>
        )}
      </div>
    </div>
  );
}

Dependencies

More by WRAPCODERS

View all
  • Product Hover Showcase

    Product Hover Showcase

    121
  • Real Estate 3D Hero

    Real Estate 3D Hero

    89
  • Creator Community Arc

    Creator Community Arc

    69
  • LoopAI CRM

    LoopAI CRM

    68
  • Isometric Card Stack

    Isometric Card Stack

    55
  • Flash Technologies Crypto Wallet Hero

    Flash Technologies Crypto Wallet Hero

    54
  • Client Management CRM Hub

    Client Management CRM Hub

    48
  • Admin Dashboard Cards

    Admin Dashboard Cards

    44

More in Heroes

View all
  • Agency Hero Section

    Agency Hero Section

    1.1K
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.8K
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    36
  • App Integration Celestial Hero

    App Integration Celestial Hero

    17
  • Chroma Sense Hero

    Chroma Sense Hero

    23
  • Hero

    Hero

    1.4K
  • Modren and Stunning Hero section

    Modren and Stunning Hero section

    200