summaryrefslogtreecommitdiff
path: root/examples/with-tailwindcss/src/components/Button.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-tailwindcss/src/components/Button.astro')
-rw-r--r--examples/with-tailwindcss/src/components/Button.astro8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/with-tailwindcss/src/components/Button.astro b/examples/with-tailwindcss/src/components/Button.astro
index 966c613aa..5e241c44f 100644
--- a/examples/with-tailwindcss/src/components/Button.astro
+++ b/examples/with-tailwindcss/src/components/Button.astro
@@ -1,6 +1,10 @@
---
let { type = 'button' } = Astro.props;
---
-<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" type={type}>
- <slot />
+
+<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"
+ {type}
+>
+ <slot />
</button>