summaryrefslogtreecommitdiff
path: root/examples/with-tailwindcss/src/components/Button.astro
diff options
context:
space:
mode:
authorGravatar Marcus Otterström <github@otterstrom.dev> 2022-07-08 22:08:32 +0200
committerGravatar GitHub <noreply@github.com> 2022-07-08 22:08:32 +0200
commit59e8c71786fd1c154904b3fefa7d26d88f4d92d2 (patch)
tree3a352e838b25a402c608913aeca21f471d75a826 /examples/with-tailwindcss/src/components/Button.astro
parent1f9e4857ff2b2cb7db89d619618cdf546cd3b3dc (diff)
downloadastro-59e8c71786fd1c154904b3fefa7d26d88f4d92d2.tar.gz
astro-59e8c71786fd1c154904b3fefa7d26d88f4d92d2.tar.zst
astro-59e8c71786fd1c154904b3fefa7d26d88f4d92d2.zip
Format astro files in examples (#3862)
Diffstat (limited to 'examples/with-tailwindcss/src/components/Button.astro')
-rw-r--r--examples/with-tailwindcss/src/components/Button.astro9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/with-tailwindcss/src/components/Button.astro b/examples/with-tailwindcss/src/components/Button.astro
index 7d11c37ea..70962e801 100644
--- a/examples/with-tailwindcss/src/components/Button.astro
+++ b/examples/with-tailwindcss/src/components/Button.astro
@@ -2,11 +2,14 @@
// Click button, get confetti!
// Styled by Tailwind :)
---
-<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">
+
+<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>
- import confetti from 'canvas-confetti';
- document.body.querySelector('button').addEventListener("click", () => confetti());
+ import confetti from "canvas-confetti";
+ document.body.querySelector("button").addEventListener("click", () => confetti());
</script>