diff options
author | 2022-04-02 18:53:00 -0300 | |
---|---|---|
committer | 2022-04-02 18:53:00 -0300 | |
commit | a377ac1efc86afd1cb37c69248fa5adae0eb6e37 (patch) | |
tree | 8edb602e029c6d520fd684de6a36d87934842320 /examples/with-tailwindcss/src | |
parent | e30aa4dfef2bbe874e2fe7f07232bf8a3c092317 (diff) | |
parent | a05177c50d52f09f32bcb2983e7af73f6507e235 (diff) | |
download | astro-a377ac1efc86afd1cb37c69248fa5adae0eb6e37.tar.gz astro-a377ac1efc86afd1cb37c69248fa5adae0eb6e37.tar.zst astro-a377ac1efc86afd1cb37c69248fa5adae0eb6e37.zip |
Merge branch 'main' into feat/vercel-adapter
Diffstat (limited to 'examples/with-tailwindcss/src')
-rw-r--r-- | examples/with-tailwindcss/src/components/Button.astro | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/with-tailwindcss/src/components/Button.astro b/examples/with-tailwindcss/src/components/Button.astro index 11c605a2f..7d11c37ea 100644 --- a/examples/with-tailwindcss/src/components/Button.astro +++ b/examples/with-tailwindcss/src/components/Button.astro @@ -5,7 +5,8 @@ <button class="py-2 px-4 bg-purple-500 text-white font-semibold rounded-lg shadow-md hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-400 focus:ring-opacity-75"> <slot /> </button> -<script hoist> + +<script> import confetti from 'canvas-confetti'; document.body.querySelector('button').addEventListener("click", () => confetti()); -</script>
\ No newline at end of file +</script> |