konfeti - v0.6.0
    Preparing search index...

    Variable KonfetiConst

    Konfeti: SharedKonfeti = ...

    Shared Fullscreen Konfeti. Every call goes to one lazily created fullscreen instance, so importing is SSR-safe and nothing touches the DOM until the first Konfeti.fire().

    import { Konfeti, KonfetiPresets } from "konfeti";

    Konfeti.fire();
    await Konfeti.fire({ particleCount: 150, spread: 90, paper: { colors: ["gold", "white"] } });
    Konfeti.fire(KonfetiPresets.FIREWORKS);
    Konfeti.onClick(document.querySelector("#like")!, { particleCount: 30 });
    Konfeti.reset();