blob: 775b9f091b546e21971c9a0bbcae204eb48331e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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>
|