Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-confetti-boom

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-confetti-boom

A customizable React confetti explosion component for celebrations and special events

  • 1.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1.8K
increased by22.66%
Maintainers
0
Weekly downloads
 
Created
Source

React Confetti Boom 🎉 - Celebrate With Style!

🚀 Bring Joy and Celebration to Your React App! Dive into a world of vibrant animations with React Confetti Boom, the ultimate confetti component for React developers.

NPM NPM Downloads License Size

boomfall

🌈 Why React Confetti Boom?

React Confetti Boom offers a lightweight, flexible, and easy-to-use solution to add a touch of celebration to your application. Whether it's celebrating a user achievement, a special event, or adding fun interactions, our confetti animation component will bring your React application to life.

🎨 Key Features

  • Two Animation Modes: Choose between 'boom' for an explosive celebration or 'fall' for a gentle rain of joy.
  • Highly Customizable: Control every aspect of the confetti, from count to colors, to perfectly match your app's theme.
  • Performance Optimized: Designed for efficiency, it adds a magical touch without compromising your app's performance.

💻 Quick Start

npm install react-confetti-boom

🛠 How to Use

Just a few lines to create an unforgettable moment:

import Confetti from 'react-confetti-boom';

function MyApp() {
  return <Confetti />;
}

🌍 Live Demo

Experience the magic firsthand and customize the confetti to your liking: Live Demo

🔧 Props Guide

Fine-tune the celebration with our comprehensive props:

  • mode: 'boom' or 'fall' - the style of your celebration.
  • colors: Array of hex values to paint your confetti.
  • particleCount: How much confetti to burst into the scene.
NameTypeDefaultDescription
mode'boom' | 'fall''boom'Mode for confetti animation. 'boom' for explosion-like, 'fall' for rain-like effect
xnumber0.5Horizontal starting position of confetti as a ratio of canvas width (0 to 1)
ynumber0.5Vertical starting position of confetti as a ratio of canvas height (0 to 1)
particleCountnumber30Number of confetti particles to generate
degnumber270Initial angle (in degrees) at which particles are emitted
shapeSizenumber12Size of confetti particles
spreadDegnumber30Angle (in degrees) that particles can deviate from the initial angle (deg)
effectIntervalnumber3000Interval (in ms) between consecutive confetti bursts
effectCountnumber1Number of confetti bursts to render
colorsstring[]['#ff577f', '#ff884b', '#ffd384', '#fff9b0']Array of colors for confetti particles, in hex format
launchSpeednumber1Initial speed at which particles are launched
fadeOutHeightnumber0.8Height ratio (0 to 1) where particles completely disappear in 'fall' mode (added in v1.1.0)

🎉 Example Usage

<Confetti mode="boom" particleCount={50} colors={['#ff577f', '#ff884b']} />

Celebrate achievements with a burst of color!

⭐ Support React Confetti Boom

Loving React Confetti Boom? Here's how you can help us make the project even better!

  • Give it a star: If you find React Confetti Boom useful, consider giving it a star on GitHub. Your star is more than just a kudos—it's a huge boost of motivation for us, and it helps more developers discover our project.
  • Spread the word: Share React Confetti Boom with your friends and colleagues. The more, the merrier!
  • Join the community: Feedback, ideas, or looking to contribute? Join us on GitHub and let's make React Confetti Boom even more awesome together.

Let's celebrate coding, one confetti burst at a time! 🎉

📜 License

Proudly open-sourced under the MIT License.

Keywords

FAQs

Package last updated on 21 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc