pulkitxm

Party Popper

Buttons 52

About

A wrapper that fires a GSAP confetti burst of particles and streamers from any trigger element when it is clicked.

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

Code

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

Usage.tsx

"use client";

import { PartyPopper } from "@/components/ui/party-popper";
import { Button } from "@/components/ui/button";

const settings = {
  particleCount: 12,
  streamerCount: 4,
  particleSizeMin: 8,
  particleSizeMax: 12,
  streamerWidthMax: 35,
  streamerHeightMax: 6,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="flex h-screen w-screen items-center justify-center">
      <PartyPopper
        particleCount={s.particleCount}
        streamerCount={s.streamerCount}
        particleSizeMin={s.particleSizeMin}
        particleSizeMax={s.particleSizeMax}
        streamerWidthMax={s.streamerWidthMax}
        streamerHeightMax={s.streamerHeightMax}
      >
        <Button asChild>
          <span>🎉 Celebrate</span>
        </Button>
      </PartyPopper>
    </div>
  );
}

Dependencies

More by pulkitxm

View all
  • Handwriting SVG

    Handwriting SVG

    437
  • Aurora Background

    Aurora Background

    155
  • Horizontal Scroll Gallery

    Horizontal Scroll Gallery

    35
  • Scroll-Linked Video Scrubber

    Scroll-Linked Video Scrubber

    35
  • Fluid Cursor Trail

    Fluid Cursor Trail

    33
  • Cursor Spotlight

    Cursor Spotlight

    29
  • Not Found Page

    Not Found Page

    15
  • Infinite Circular Scroll

    Infinite Circular Scroll

    9

More in Buttons

View all
  • Apple play button

    Apple play button

    50
  • Base Button

    Base Button

  • Spider-Verse Glitch Button

    Spider-Verse Glitch Button

    72
  • Button

    Button

  • Social Icon

    Social Icon

    451
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Toggle Button

    Toggle Button

    2
  • Buttons

    Buttons

    1