Confetti Component
This documentation provides information on how to use the confetti function to create a confetti animation on a webpage.

Installation
Usage
Example Usage
Demo
Last updated
This documentation provides information on how to use the confetti function to create a confetti animation on a webpage.

Last updated
npm install @questlabs/react-sdkimport { confetti } from '@questlabs/react-sdk'; // Import the confetti module.
import '@questlabs/react-sdk/dist/style.css'javascriptCopy code// Example: Display confetti for 3 seconds (3000 milliseconds).
confetti(3000);import { confetti } from '@questlabs/react-sdk'; // Import the confetti module.
function celebrateEvent() {
// Display confetti for 5 seconds (5000 milliseconds).
confetti(5000);
}
// Trigger the confetti animation on a celebration event, like a button click.
celebrateEvent();