Skip to content
R

react-confetti

React component to draw confetti for your party

by alamprosFree

#41in UI Libraries
0In stores

Description

react-confetti is a React component that draws confetti on a canvas for celebrations. It is for developers who want a celebratory effect in…

Highlights

  • Canvas confetti for React
  • Configurable physics and colours
  • Range-based starting velocities
  • Custom piece shapes with drawShape
  • Can pause, recycle and cap frame rate

Ratings & Reviews

No ratings yet

Be the first to rate react-confetti.

People also visit

C

Canvas Confetti

performant confetti animation in the browser

Utilities
Launch
S

sekei

Canvas effects for React, copied into your project as source

UI Libraries
Launch
G

glint-ui

354 animated React components you copy, paste and own: text effects, cursors

UI Libraries
Launch
H

honestui

React UI components, animated interactions, shaders

UI Libraries
Launch
A

awwwardedui

A curated registry of production-ready creative components

UI Libraries
Launch
S

Sona UI

Animated React components you fully own

UI Libraries
Launch

react-confetti FAQ

What is react-confetti?

A React component that draws confetti on a canvas for celebrations in a web app.

Should I set the size myself?

Yes. The README recommends providing width and height, because the defaults do not respond to resizing.

Can I change how the confetti moves?

Yes. Props set the number of pieces, friction, wind, gravity, starting velocities and easing.

Can I draw my own shapes?

Yes. The drawShape prop lets you draw a custom shape for each piece.

Does it stop by itself?

You can set run to false to stop the loop, and recycle controls whether it keeps spawning confetti.

What are the best react-confetti alternatives?

Popular alternatives to react-confetti include sekei, glint-ui and honestui. See all react-confetti alternatives

Developer Stuff

Badges