konfeti - v0.6.0
    Preparing search index...

    Function registerShapes

    • Register Built-in Shape Handlers (for konfeti/lite). The full konfeti entry already registers every shape; with konfeti/lite only paper is available until you register the others you use, so unused shapes stay out of your bundle.

      Parameters

      • ...handlers: readonly AnyShapeHandler[]

        Shape Handlers (starShape, emojiShape, …)

      Returns void

      import { Konfeti, registerShapes, starShape, emojiShape } from "konfeti/lite";

      registerShapes(starShape, emojiShape);
      Konfeti.fire({ shapes: [{ type: "star" }, { type: "emoji", emoji: "🎉" }] });