🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-canvas-confetti

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-canvas-confetti - npm Package Compare versions

Comparing version

to
2.0.5

1

dist/index.js

@@ -51,3 +51,2 @@ "use strict";

height: "100%",
zIndex: -1,
top: 0,

@@ -54,0 +53,0 @@ left: 0,

2

package.json
{
"name": "react-canvas-confetti",
"version": "2.0.4",
"version": "2.0.5",
"description": "React component for canvas-confetti library",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -90,3 +90,3 @@ # [react-canvas-confetti](https://ulitcos.github.io/react-canvas-confetti/)

| className | string | value to set className to canvas element |
| style | CSSProperties | value to set style to canvas element |
| style | CSSProperties | value to set style to canvas element. If `style` and `className` are not passed, the default styles will be set |
| globalOptions | [TGlobalOptions](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/canvas-confetti/index.d.ts#L126) | global animation settings that cannot be changed after initialization ([details](https://github.com/catdad/canvas-confetti?tab=readme-ov-file#confetticreatecanvas-globaloptions--function)) |

@@ -123,2 +123,4 @@ | onInit | (params: {confetti: [TCanvasConfettiInstance](#canvas-confetti-instance)}) => void | the callback is called when the component is mounted on the page and allows you to access confetti instance ([details](https://github.com/catdad/canvas-confetti?tab=readme-ov-file#confettioptions-object--promisenull)) for manual animation creation |

[Custom Animation](https://codesandbox.io/p/devbox/custom-animation-react-canvas-confetti-v2-2v8wkx)
[Custom Animation](https://codesandbox.io/p/devbox/custom-animation-react-canvas-confetti-v2-ff42f6)
[Custom Stylization](https://codesandbox.io/p/devbox/custom-stylization-react-canvas-confetti-v2-nmjfc8)

Sorry, the diff of this file is not supported yet