reactfitti
v1.0.1
Published
![Demo Animation](./confetti-demo.gif?raw=true)
Downloads
3
Readme
ReactFitti
Install
npm install reactfitti
yarn add reactfitti
Usage
import React from "react";
import Confetti from "confetti";
const App = () => {
return (
<div>
<Confetti />
</div>
);
};
export default App;
Props
| Prop | Type | Optional | Default | Description | |------------------|----------|----------|---------|---------------------------------------| | colors | string[] | Yes | | Random colors for the confetti papers | | numberOfElements | number | Yes | 250 | Amount of pieces on the view | | | | | | | |
License
MIT © charliesbox