1.1.5 • Published 1 year ago
react-confetti-pro
Licence
ISC
Version
1.1.5
Deps
1
Size
15 kB
Vulns
0
Weekly
0
React Confetti Pro
A customizable confetti animation for React. Easily add a fun and interactive confetti effect to your React applications.
Installation
You can install react-confetti-pro via npm or yarn:
npm install react-confetti-pro
or
yarn add react-confetti-pro
Usage
Import and use the Confetti component in your React application:
import { Confetti } from 'react-confetti-pro';
function App() {
return (
<Confetti
particleCount={150}
duration={10000}
direction={'center'}
/>
);
}
export default App;
Props
| Prop | Type | Default | Description |
|---|---|---|---|
particleCount |
number | 100 |
Number of confetti particles. |
duration |
number | 5000 |
Duration of the confetti effect in milliseconds. |
direction |
string | 'center' |
Direction of the confetti ('left', 'right', 'center'). |
License
This project is licensed under the ISC License.