Skip to content

Confetti Button

A button that fires physical confetti: paper pieces that spin in 3D, fall with air drag and flutter.

Plan
Free · MIT
Dependencies
React only
Props
9 (7 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
childrenReactNode"Celebrate"Button text.
countnumber120How many pieces come out.
colorsstring[]"#ff5470, #ffb84d, #3ddc97, #4da3ff, #a66bff, #ffffff"Colors of the confetti pieces.
spreadnumber130Opening of the fan, in degrees.
anglenumber-90Central direction of the burst, in degrees (-90 = upward).
powernumber1Launch strength (1 = normal).
origin"pointer" | "center""pointer"Where it comes from: the click point, or the center of the button.
backgroundstring"#f4f4f7"Button background color.
colorstring"#14151a"Button text color.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { ConfettiButton } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • A copy button where the icon outline morphs into a checkmark with a stroke and spring morph. It really copies the text with navigator.clipboard (with a fallback).

    Buttons

  • A button that narrows into a progress bar, advances at an uneven pace like a real network, and ends in a checkmark. With href, it really downloads the file.

    Buttons

  • A liquid-glass button that refracts the background behind it.

    Buttons