aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/shadcn/components/ui/button/button.svelte
diff options
context:
space:
mode:
authorMurillo Pinheiro de Oliveira <[email protected]>2024-02-28 12:42:46 -0300
committerMurillo Pinheiro de Oliveira <[email protected]>2024-02-28 12:42:46 -0300
commit907366bc11171ac5c121e9b2ccd9c0d38e634164 (patch)
tree3cc4774ebf7b8e25a41b76a2753a2957b22787c1 /src/lib/shadcn/components/ui/button/button.svelte
parentbd114379db9abd9d0414d9179816a23ef041ab01 (diff)
downloadcoinos-ui-907366bc11171ac5c121e9b2ccd9c0d38e634164.tar.gz
coinos-ui-907366bc11171ac5c121e9b2ccd9c0d38e634164.zip
update: ui
Diffstat (limited to 'src/lib/shadcn/components/ui/button/button.svelte')
-rw-r--r--src/lib/shadcn/components/ui/button/button.svelte21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/shadcn/components/ui/button/button.svelte b/src/lib/shadcn/components/ui/button/button.svelte
new file mode 100644
index 00000000..775b9f09
--- /dev/null
+++ b/src/lib/shadcn/components/ui/button/button.svelte
@@ -0,0 +1,21 @@
+<script>
+ import { Button as ButtonPrimitive } from "bits-ui";
+ import { cn } from "$lib/shadcn/utils";
+ import { buttonVariants } from ".";
+ let className = undefined;
+ export let variant = "default";
+ export let size = "default";
+ export let builders = [];
+ export { className as class };
+</script>
+
+<ButtonPrimitive.Root
+ {builders}
+ class={cn(buttonVariants({ variant, size, className }))}
+ type="button"
+ {...$$restProps}
+ on:click
+ on:keydown
+>
+ <slot />
+</ButtonPrimitive.Root>