throwConfetti(options?: ThrowConfettiOptions): unknown
Generates a canvas that has confetti in it.
Optional settings object to configure how the confetti behaves.
import { throwConfetti } from '@adam/confetti' throwConfetti()
import { throwConfetti, defaultCanvasStyles } from '@adam/confetti' throwConfetti({ canvasId: 'custom-canvas-id', customStyles: { ...defaultCanvasStyles, width: '500px', height: '500px', }, particleCount: 300, secondsUntilDeletion: 8, selectorToAppend: 'main', })