{"_id":"@neoconfetti/svelte","_rev":"6-ee42056c61e9afce2992fb8289ff1bc0","name":"@neoconfetti/svelte","dist-tags":{"latest":"2.2.2"},"versions":{"1.0.0":{"name":"@neoconfetti/svelte","version":"1.0.0","keywords":["confetti","party","fun","badass","badassery","svelte","sveltekit","small","tiny","performant"],"author":{"name":"Puru Vijay"},"license":"MIT","_id":"@neoconfetti/svelte@1.0.0","maintainers":[{"name":"puruvj","email":"awesomepuruvj@gmail.com"}],"homepage":"https://github.com/puruvj/neoconfetti/tree/main/packages/svelte#readme","bugs":{"url":"https://github.com/puruvj/neoconfetti/issues"},"dist":{"shasum":"84a7f98981ad546d959d8c99460da8cebdf70301","tarball":"https://registry.npmjs.org/@neoconfetti/svelte/-/svelte-1.0.0.tgz","fileCount":5,"integrity":"sha512-SmksyaJAdSlMa9cTidVSIqYo1qti+WTsviNDwgjNVm+KQ3DRP2Df9umDIzC4vCcpEYY+chQe0i2IKnLw03AT8Q==","signatures":[{"sig":"MEQCIBWDvge+80bO2v8xq+6cDqGuXhTZlAZDRCzDLiNng/xHAiAtZLw/KvTPGQM+bc1whvG2I9FBCCC7lWzFqjuxzb49lw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKZXXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqrXA//XIijfHDrsZCip/FXupmsdIEEHZOwXcEPHK3XTNR4e30L1R4G\r\ndFLfqVJ/Q/kStp7v9NRGd84QmMlvuVZFasB5AelvgAA4PRCIN2tbQ/Ac4/XU\r\nS0IT9euierCW5W9mdKRmoJhgqtSXqe081b0gTHIfmeLf/0Cw0f4ElnuYzTDq\r\nigHbRbwGjv+VD8fznpAv5pAtwb2ff2nRXBTdXvnuaEb0qSTauHECLAeV+9iA\r\nHSr05fSsdXOMkq3sFH0JHkB9L9EZ7x1YP+pnVPub4ab9kzQOxBEHCPxg8f7e\r\n4sqQQwiDyHRDEf5HKlv0SpdHVEHbaJaf/IzSYkGVaSk6pSz+w7MBq4d9RqiE\r\nqYgQIzMn1FrZeQvSVBTvRlnSlgbYP3yx8a4PnuJkI8/3YvDbPpLT46sK5Eqq\r\nvfnH0i77DlalgmRdt8/ujVM4ccfxG/WQDptSsLy1zS7fhyxB+XMQj4Um9qMa\r\nlBybFeCVGlaoOYQzFi7DMyGzzF+twXwpglqjX3QC9RVxSpaNMZq6IieoeTX3\r\nvD24gWYwQOuPPS90J669v7FwF/fSJPPeZAjKNK6AQEMHtyRizBskhHH+b0t8\r\ngBYiYIekbzaE/jB8UWultLQiMds5YqL04GSNoQsIznaNMVZfeYqhMPA4o52g\r\n/GlAzhX61Nr6QzxTLSUAyoZPe0JR/xIzDAc=\r\n=I3zZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","type":"module","_from":"file:neoconfetti-svelte-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","module":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"dev":"rollup -cw","pub":"pnpm build && pnpm publish --no-git-checks --access public","size":"echo 'Svelte size:' && brotli-size dist/index.js","build":"rollup -c ","pub:dry":"pnpm build && pnpm publish --dry-run --no-git-checks --access public"},"_npmUser":{"name":"puruvj","email":"awesomepuruvj@gmail.com"},"_resolved":"/private/var/folders/vy/t_gnvs3d0xl_yr19nt9fg5l80000gn/T/877ec34a97e46afd9807c2c5cf5b50ee/neoconfetti-svelte-1.0.0.tgz","_integrity":"sha512-SmksyaJAdSlMa9cTidVSIqYo1qti+WTsviNDwgjNVm+KQ3DRP2Df9umDIzC4vCcpEYY+chQe0i2IKnLw03AT8Q==","repository":{"url":"git+https://github.com/puruvj/neoconfetti.git","type":"git"},"_npmVersion":"8.15.0","description":"Confetti explosion in Svelte 🎉🎊","directories":{},"sideEffects":false,"_nodeVersion":"16.17.0","_hasShrinkwrap":false,"devDependencies":{"@neoconfetti/core":"1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte_1.0.0_1663669719512_0.31668577122752706","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@neoconfetti/svelte","version":"2.0.0","keywords":["confetti","party","fun","badass","badassery","svelte","sveltekit","small","tiny","performant"],"author":{"name":"Puru Vijay"},"license":"MIT","_id":"@neoconfetti/svelte@2.0.0","maintainers":[{"name":"puruvj","email":"awesomepuruvj@gmail.com"}],"homepage":"https://github.com/puruvj/neoconfetti/tree/main/packages/svelte#readme","bugs":{"url":"https://github.com/puruvj/neoconfetti/issues"},"dist":{"shasum":"bec34a3b321e6a6bafba0d91b26c13d401e0eeba","tarball":"https://registry.npmjs.org/@neoconfetti/svelte/-/svelte-2.0.0.tgz","fileCount":5,"integrity":"sha512-n/Uu7/XmHc8w0uBci0QWBjgbRzLhfWsH8yPJ5pMaseIvzSwabXvB30nb3JjzEYNBp9uGt4eCeY7LUmxAjnJV8A==","signatures":[{"sig":"MEQCIEXVUFfjrWzyiY3dtFcLzgVgaGW132LBz3d9Bi1EvPL/AiAjQq8RteyJYxGJy34mp4gIf+WzS1XCeiElViO2Pn1Jeg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17317},"main":"./dist/index.js","type":"module","_from":"file:neoconfetti-svelte-2.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","module":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pub":"pnpm build && pnpm publish --no-git-checks --access public","size":"echo 'Svelte size:' && brotli-size dist/min/index.js","compile":"tsup","pub:dry":"pnpm build && pnpm publish --dry-run --no-git-checks --access public","compile:watch":"tsup --watch"},"_npmUser":{"name":"puruvj","email":"awesomepuruvj@gmail.com"},"_resolved":"/tmp/0fff830eee8fd79442ac08e88d303916/neoconfetti-svelte-2.0.0.tgz","_integrity":"sha512-n/Uu7/XmHc8w0uBci0QWBjgbRzLhfWsH8yPJ5pMaseIvzSwabXvB30nb3JjzEYNBp9uGt4eCeY7LUmxAjnJV8A==","repository":{"url":"git+https://github.com/puruvj/neoconfetti.git","type":"git"},"_npmVersion":"10.2.3","description":"Confetti explosion in Svelte 🎉🎊","directories":{},"sideEffects":false,"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"@neoconfetti/core":"2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte_2.0.0_1702892451314_0.8004847151407795","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@neoconfetti/svelte","version":"2.1.0","keywords":["confetti","party","fun","badass","badassery","svelte","sveltekit","small","tiny","performant"],"author":{"name":"Puru Vijay"},"license":"MIT","_id":"@neoconfetti/svelte@2.1.0","maintainers":[{"name":"puruvj","email":"awesomepuruvj@gmail.com"}],"homepage":"https://github.com/puruvj/neoconfetti/tree/main/packages/svelte#readme","bugs":{"url":"https://github.com/puruvj/neoconfetti/issues"},"dist":{"shasum":"4abf5176fbcd9756413aed8c14a28029de9fbadb","tarball":"https://registry.npmjs.org/@neoconfetti/svelte/-/svelte-2.1.0.tgz","fileCount":5,"integrity":"sha512-JuOYR+CpQ1uXZRijuyD5PsMoAZco9Mjt+9A+FvM6T/nBku+wp/JQLHY6/egXTCANWYLF+lUYCRHbtReG5DRXkQ==","signatures":[{"sig":"MEUCIHC1BS4gD8+C+m+pqHk6SaVCbXzQM78GmU0ER0oy9QtIAiEAtJ1SveK31Mhur6Fv1hblUFZ19Sbk2aQMZ4puA2NVE+0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19954},"main":"./dist/index.js","type":"module","_from":"file:neoconfetti-svelte-2.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","module":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pub":"pnpm compile && pnpm publish --no-git-checks --access public","size":"echo 'Svelte size:' && brotli-size dist/min/index.js","compile":"tsup","pub:dry":"pnpm compile && pnpm publish --dry-run --no-git-checks --access public","compile:watch":"tsup --watch"},"_npmUser":{"name":"puruvj","email":"awesomepuruvj@gmail.com"},"_resolved":"/tmp/6d949147d42acba865e45a651ecd3e91/neoconfetti-svelte-2.1.0.tgz","_integrity":"sha512-JuOYR+CpQ1uXZRijuyD5PsMoAZco9Mjt+9A+FvM6T/nBku+wp/JQLHY6/egXTCANWYLF+lUYCRHbtReG5DRXkQ==","repository":{"url":"git+https://github.com/puruvj/neoconfetti.git","type":"git"},"_npmVersion":"10.2.3","description":"Confetti explosion in Svelte 🎉🎊","directories":{},"sideEffects":false,"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"@neoconfetti/core":"2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte_2.1.0_1702971249390_0.7491244935142767","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"@neoconfetti/svelte","version":"2.2.0","keywords":["confetti","party","fun","badass","badassery","svelte","sveltekit","small","tiny","performant"],"author":{"name":"Puru Vijay"},"license":"MIT","_id":"@neoconfetti/svelte@2.2.0","maintainers":[{"name":"puruvj","email":"awesomepuruvj@gmail.com"}],"homepage":"https://github.com/puruvj/neoconfetti/tree/main/packages/svelte#readme","bugs":{"url":"https://github.com/puruvj/neoconfetti/issues"},"dist":{"shasum":"256b1809b4abb9a186880d401694c49af6fef5fc","tarball":"https://registry.npmjs.org/@neoconfetti/svelte/-/svelte-2.2.0.tgz","fileCount":5,"integrity":"sha512-vXUiZ7viyh8WdmnElzLXYAX+kOg4qzREOAdHWpHIQPoIHOmEJBjWI5i+Roq/MWmNu+pfpMVCcZCjCvsBfP6NOw==","signatures":[{"sig":"MEUCIDhQI9AnrYZd22vKdUko0E0w+YJbptPJ+AVvMmdDX2D8AiEA2D7LiaKKa1iJB66G+KHtG7DNRHIx5ZZcfnRdpZR+J/Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20288},"main":"./dist/index.js","type":"module","_from":"file:neoconfetti-svelte-2.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":{"production":"./dist/min/index.js","development":"./dist/index.js"},"default":"./dist/min/index.js"},"./package.json":"./package.json"},"scripts":{"pub":"pnpm compile && pnpm publish --no-git-checks --access public","size":"echo 'Svelte size:' && brotli-size dist/min/index.js","compile":"tsup","pub:dry":"pnpm compile && pnpm publish --dry-run --no-git-checks --access public","compile:watch":"tsup --watch"},"_npmUser":{"name":"puruvj","email":"awesomepuruvj@gmail.com"},"_resolved":"/tmp/9df8c6d4914071db9061d22f979eeef9/neoconfetti-svelte-2.2.0.tgz","_integrity":"sha512-vXUiZ7viyh8WdmnElzLXYAX+kOg4qzREOAdHWpHIQPoIHOmEJBjWI5i+Roq/MWmNu+pfpMVCcZCjCvsBfP6NOw==","repository":{"url":"git+https://github.com/puruvj/neoconfetti.git","type":"git"},"_npmVersion":"10.2.3","description":"Confetti explosion in Svelte 🎉🎊","directories":{},"sideEffects":false,"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"@neoconfetti/core":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte_2.2.0_1703013159461_0.4527054609374852","host":"s3://npm-registry-packages"}},"2.2.1":{"name":"@neoconfetti/svelte","version":"2.2.1","keywords":["confetti","party","fun","badass","badassery","svelte","sveltekit","small","tiny","performant"],"author":{"name":"Puru Vijay"},"license":"MIT","_id":"@neoconfetti/svelte@2.2.1","maintainers":[{"name":"puruvj","email":"awesomepuruvj@gmail.com"}],"homepage":"https://github.com/puruvj/neoconfetti/tree/main/packages/svelte#readme","bugs":{"url":"https://github.com/puruvj/neoconfetti/issues"},"dist":{"shasum":"ac4c322ad0d7d89041a5fabf434f150d81b65653","tarball":"https://registry.npmjs.org/@neoconfetti/svelte/-/svelte-2.2.1.tgz","fileCount":5,"integrity":"sha512-2Ts0Rxaf6clW2qG+AKhTwpl01AAyZEAe03XeuQ7Vp+qYIaM3ycuI94j546fmEkUxwACwGI3Zl2cZ/pncTuNcJg==","signatures":[{"sig":"MEYCIQDpwVkLzsbaN5qj0tGP6/IhPnXIzy3JYIhZkOvFzwRB+gIhAK7UxvM0O7l6a64M5ykRBlzX+QK8v//aGDiaph8QrCtQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20344},"main":"./dist/index.js","type":"module","_from":"file:neoconfetti-svelte-2.2.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":{"production":"./dist/min/index.js","development":"./dist/index.js"},"default":"./dist/min/index.js"},"./package.json":"./package.json"},"scripts":{"pub":"pnpm compile && pnpm publish --no-git-checks --access public","size":"echo 'Svelte size:' && brotli-size dist/min/index.js","compile":"tsup","pub:dry":"pnpm compile && pnpm publish --dry-run --no-git-checks --access public","compile:watch":"tsup --watch"},"_npmUser":{"name":"puruvj","email":"awesomepuruvj@gmail.com"},"_resolved":"/tmp/78c466d770edb0719e6861dc884a6968/neoconfetti-svelte-2.2.1.tgz","_integrity":"sha512-2Ts0Rxaf6clW2qG+AKhTwpl01AAyZEAe03XeuQ7Vp+qYIaM3ycuI94j546fmEkUxwACwGI3Zl2cZ/pncTuNcJg==","repository":{"url":"git+https://github.com/puruvj/neoconfetti.git","type":"git"},"_npmVersion":"10.2.3","description":"Confetti explosion in Svelte 🎉🎊","directories":{},"sideEffects":false,"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"@neoconfetti/core":"2.2.1"},"_npmOperationalInternal":{"tmp":"tmp/svelte_2.2.1_1703408367802_0.9870430698205706","host":"s3://npm-registry-packages"}},"2.2.2":{"name":"@neoconfetti/svelte","version":"2.2.2","description":"Confetti explosion in Svelte 🎉🎊","author":{"name":"Puru Vijay"},"license":"MIT","bugs":{"url":"https://github.com/puruvj/neoconfetti/issues"},"homepage":"https://github.com/puruvj/neoconfetti/tree/main/packages/svelte#readme","repository":{"type":"git","url":"git+https://github.com/puruvj/neoconfetti.git"},"keywords":["confetti","party","fun","badass","badassery","svelte","sveltekit","small","tiny","performant"],"main":"./dist/index.js","module":"./dist/index.js","type":"module","types":"./dist/index.d.ts","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":{"production":"./dist/min/index.js","development":"./dist/index.js"},"default":"./dist/min/index.js"},"./package.json":"./package.json"},"devDependencies":{"@neoconfetti/core":"2.2.1"},"peerDependencies":{"svelte":"^3.0.0 || ^4.0.0 || ^5.0.0"},"scripts":{"compile:watch":"tsup --watch","compile":"tsup","size":"echo 'Svelte size:' && brotli-size dist/min/index.js","pub":"pnpm compile && pnpm publish --no-git-checks --access public","pub:dry":"pnpm compile && pnpm publish --dry-run --no-git-checks --access public"},"_id":"@neoconfetti/svelte@2.2.2","_integrity":"sha512-E7xCFVEEm5Ctnj2udTJy1b9oaTvjz1zi1mYdEtE8rB5BVwq6kHisosDS+zdWN5PMfEMjtbsOV9Cl6tsNSAD1sA==","_resolved":"/tmp/1c2969ce0e0f63bae8d49c6200b2ec5b/neoconfetti-svelte-2.2.2.tgz","_from":"file:neoconfetti-svelte-2.2.2.tgz","_nodeVersion":"20.18.3","_npmVersion":"10.8.2","dist":{"integrity":"sha512-E7xCFVEEm5Ctnj2udTJy1b9oaTvjz1zi1mYdEtE8rB5BVwq6kHisosDS+zdWN5PMfEMjtbsOV9Cl6tsNSAD1sA==","shasum":"894c0cddd6ea6b5e174c9bc8c9f8195a55b14f88","tarball":"https://registry.npmjs.org/@neoconfetti/svelte/-/svelte-2.2.2.tgz","fileCount":5,"unpackedSize":20434,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGgTg4kxwJGFgbxHNCyzr7w0l8dIkNw/xXt/KusBLNjkAiBdfKBL6BRYk2OGZ0wxyIkcGaQAMZ3XV9be4wvBtvN1uQ=="}]},"_npmUser":{"name":"puruvj","email":"awesomepuruvj@gmail.com"},"directories":{},"maintainers":[{"name":"puruvj","email":"awesomepuruvj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/svelte_2.2.2_1741525081336_0.21929632974901003"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-20T10:28:39.460Z","modified":"2025-03-09T12:58:01.714Z","1.0.0":"2022-09-20T10:28:39.832Z","2.0.0":"2023-12-18T09:40:51.550Z","2.1.0":"2023-12-19T07:34:09.529Z","2.2.0":"2023-12-19T19:12:39.751Z","2.2.1":"2023-12-24T08:59:28.049Z","2.2.2":"2025-03-09T12:58:01.521Z"},"bugs":{"url":"https://github.com/puruvj/neoconfetti/issues"},"author":{"name":"Puru Vijay"},"license":"MIT","homepage":"https://github.com/puruvj/neoconfetti/tree/main/packages/svelte#readme","keywords":["confetti","party","fun","badass","badassery","svelte","sveltekit","small","tiny","performant"],"repository":{"type":"git","url":"git+https://github.com/puruvj/neoconfetti.git"},"description":"Confetti explosion in Svelte 🎉🎊","maintainers":[{"name":"puruvj","email":"awesomepuruvj@gmail.com"}],"readme":"# @neoconfetti/svelte\n\nLet's party 🎊🎊 with Svelte! `@neoconfetti/svelte` allows you to show an awesome confetti explosion on your page, with Svelte!\n\n## Features\n\n- 🤏 Tiny - 1.49KB min+br.\n- 🐇 Simple - Quite simple to use, and effectively no-config required!\n- 🧙‍♀️ Elegant - Svelte action `use:confetti` rather than setting things up in `onMount` hook.\n- 🗃️ Customizable - Offers tons of options that you can modify to get different behaviors.\n- 🖥️ SSR friendly - Works seamlessly in Sveltekit and other Server Side Rendering environments!\n\n[Try it in Svelte REPL](https://svelte.dev/playground/4e41a080739a4427a1f2c98b7f5d4b24)\n\n## Installing\n\n```bash\n# pnpm\npnpm add @neoconfetti/svelte\n\n# npm\nnpm install @neoconfetti/svelte\n\n# yarn\nyarn add @neoconfetti/svelte\n```\n\n## Usage\n\nBasic usage:\n\n```svelte\n<script>\n\timport { confetti } from '@neoconfetti/svelte';\n</script>\n\n<div use:confetti />\n```\n\nCustomizing behavior with options:\n\n```svelte\n<div use:confetti={{ particleCount: 200, force: 0.3 }} />\n```\n\n## Props\n\nThere's tons of options available for this package. All of them are already documented within the code itself, so you'll never have to leave the code editor.\n\n### particleCount\n\nNumber of confetti particles to create.\n\n**type:** `number`\n\n**Default value:** 150\n\n**Example:**\n\n```svelte\n<div use:confetti={{ particleCount: 200 }} />\n```\n\n### particleSize\n\nSize of the confetti particles in pixels\n\n**type:** `number`\n\n**Default value:** 12\n\n**Example:**\n\n```svelte\n<div use:confetti={{ particleSize: 20 }} />\n```\n\n### particleShape\n\nShape of particles to use. Can be `mix`, `circles` or `rectangles`\n\n`mix` will use both circles and rectangles\n`circles` will use only circles\n`rectangles` will use only rectangles\n\n**type:** `'mix' | 'circles' | 'rectangles'`\n\n**Default value:** `'mix'`\n\n**Example:**\n\n```svelte\n<div use:confetti={{ particleShape: 'circles' }} />\n```\n\n### duration\n\nDuration of the animation in milliseconds\n\n**type:** `number`\n\n**Default value:** 3500\n\n**Example:**\n\n```svelte\n<div use:confetti={{ duration: 5000 }} />\n```\n\n### colors\n\nColors to use for the confetti particles. Pass string array of colors. Can use hex colors, named colors, CSS Variables, literally anything valid in plain CSS.\n\n**type:** `Array<string>`\n\n**Default value:** `['#FFC700', '#FF0000', '#2E3191', '#41BBC7']`\n\n**Example:**\n\n```svelte\n<div use:confetti={{ colors: ['var(--yellow)', 'var(--red)', '#2E3191', '#41BBC7'] }} />\n```\n\n### force\n\nForce of the confetti particles. Between 0 and 1. 0 is no force, 1 is maximum force. Will error out if you pass a value outside of this range.\n\n**type:** `number`\n\n**Default value:** 0.5\n\n**Example:**\n\n```svelte\n<div use:confetti={{ force: 0.3 }} />\n```\n\n### stageHeight\n\nHeight of the stage in pixels. Confetti will only fall within this height.\n\n**type:** `number`\n\n**Default value:** 800\n\n**Example:**\n\n```svelte\n<div use:confetti={{ stageHeight: 500 }} />\n```\n\n### stageWidth\n\nWidth of the stage in pixels. Confetti will only fall within this width.\n\n**type:** `number`\n\n**Default value:** 1600\n\n**Example:**\n\n```svelte\n<div use:confetti={{ stageWidth: 500 }} />\n```\n\n### destroyAfterDone\n\nWhether or not destroy all confetti nodes after the `duration` period has passed. By default it destroys all nodes, to free up memory.\n\n**type:** `boolean`\n\n**Default value:** `true`\n\n**Example:**\n\n```svelte\n<div use:confetti={{ destroyAfterDone: false }} />\n```\n\n## Examples\n\n[Basic Example](https://svelte.dev/playground/4e41a080739a4427a1f2c98b7f5d4b24?version=3.50.1)\n\n[Confetti where mouse click](https://svelte.dev/playground/dbe0ab06c34f4f25aa6f948fdd1982c7?version=3.50.1)\n\n## Fine-grained reactivity\n\nChanging the options will destroy the existing confetti mid-flight, and create a new one with the new options. Exception: If `particlesCount` isn't changed, and properties like `colors` or `particleShape` is changed, the confetti particles will change their colors or shape mid-flight.\n\n## Performance\n\nThis library functions by creating 2 DOM nodes for every single confetti. By default, if the `particlesCount` is set to 150, it will create 300 nodes. This is a lot of nodes. For most devices, these many nodes are not a big issue, but I recommend checking your target devices' performance if you choose to go with a higher number, like 400 or 500.\n\nAlso, after the specified `duration`, all the confetti DOM nodes will be destroyed. This is to free up memory. If you wish to keep them around, set `destroyAfterDone` to `false`.\n\n## Credits\n\nThis library is the port of the amazing [react-confetti-explosion](https://www.npmjs.com/package//react-confetti-explosion) package, just **10X** smaller and faster. All the logic is from that package only, optimisation and Svelte code are mine 😉\n\n## License\n\nMIT License\n© [Puru Vijay](https://twitter.com/puruvjdev)\n","readmeFilename":"README.md"}