ShadcnStore

Confetti

Component 10

About

Confetti animation on click

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

Code

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

Usage.tsx

"use client";

import { Button } from "@/components/ui/button";
import { Confetti } from "@/components/ui/motion-confetti";
import * as React from "react";

export default function ConfettiDemo() {
  const confettiRef = React.useRef<{ fire: () => void }>(null);

  return (
    <div className="relative flex h-screen w-full items-center justify-center bg-background">
      <Button onClick={() => confettiRef.current?.fire()}>Celebrate</Button>
      <Confetti ref={confettiRef} />
    </div>
  );
}

More by ShadcnStore

View all
  • App Dashboard Layout

    App Dashboard Layout

    291
  • Users List Datatable

    Users List Datatable

    105
  • Pricing Section 1

    Pricing Section 1

    94
  • Agents Team Grid

    Agents Team Grid

    35
  • CTA Section

    CTA Section

    33
  • Team Profile Grid

    Team Profile Grid

    28
  • Login Page 1

    Login Page 1

    26
  • Changelog List

    Changelog List

    21