React Confetti
react-confetti
React component to draw confetti for your party.
Component Libraries
react
confetti
component
react-component
react-confetti
Component Libraries
javascript
npm
frontend
open source
Stars
1.7k
Weekly
2.2M
Open issues
8
Bundle
~25 kB
Installation
npm install react-confettiCode example
import { Button } from "react-confetti";
export function Example() {
return (
<div className="flex gap-2">
<Button>Primary</Button>
<Button variant="outline">Secondary</Button>
</div>
);
}Pros & cons
Pros
- Actively maintained by Aaron Lampros
- 2.2M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 8 open issues on GitHub