From 66566bd6af83fdd9a64ab8df5bee0563022fb458 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sat, 1 Mar 2025 00:16:50 +0530 Subject: [PATCH] chore: Add shadcn/button --- src/lib/components/ui/button/button.svelte | 75 ++++++++++++++++++++++ src/lib/components/ui/button/index.ts | 1 + 2 files changed, 76 insertions(+) create mode 100644 src/lib/components/ui/button/button.svelte create mode 100644 src/lib/components/ui/button/index.ts diff --git a/src/lib/components/ui/button/button.svelte b/src/lib/components/ui/button/button.svelte new file mode 100644 index 00000000..6353277d --- /dev/null +++ b/src/lib/components/ui/button/button.svelte @@ -0,0 +1,75 @@ + + + + +{#if href} + + {@render children?.()} + +{:else} + +{/if} diff --git a/src/lib/components/ui/button/index.ts b/src/lib/components/ui/button/index.ts new file mode 100644 index 00000000..c68d2fbc --- /dev/null +++ b/src/lib/components/ui/button/index.ts @@ -0,0 +1 @@ +export { default as Button, buttonVariants, default as Root, type ButtonProps, type ButtonSize, type ButtonVariant, type ButtonProps as Props } from "./button.svelte";