Shailendra Kumar

Firework

Component 1

About

This is firework

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

Code

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

Usage.tsx

"use client";

import { FireworksBackground } from "@/components/ui/firework";

const FireworksBackgroundDemo = () => {
  return (
    <div className="flex justify-center bg-black items-center h-screen">
      <FireworksBackground
        className="absolute inset-0 flex items-center justify-center"
        population={2}
        color={["#ff0040", "#ffaa00", "#00ff00", "#00aaff", "#ff00ff", "#ffff00", "#ff4500", "#00ffaa"]}
        fireworkSpeed={{ min: 10, max: 20 }}
        fireworkSize={{ min: 3, max: 6 }}
        particleSpeed={{ min: 3, max: 12 }}
        particleSize={{ min: 1, max: 4 }}
      />
    </div>
  );
};
export default FireworksBackgroundDemo;

More by Shailendra Kumar

View all
  • Map

    Map

    1.7K
  • social card

    social card

    731
  • Animated 3D Card

    Animated 3D Card

    544
  • Date Picker

    Date Picker

    167
  • Animated Button

    Animated Button

    131
  • Kanban

    Kanban

    106
  • switch

    switch

    96
  • 404 page not found

    404 page not found

    81