diff --git a/src/lib/ui/Button.svelte b/src/lib/ui/Button.svelte index 483d1d5..e442be2 100644 --- a/src/lib/ui/Button.svelte +++ b/src/lib/ui/Button.svelte @@ -2,6 +2,8 @@ type Variant = 'primary' | 'secondary' | 'ghost'; type Size = 'sm' | 'md' | 'large'; + import type { Snippet } from 'svelte'; + let { variant = 'primary', size = 'md', @@ -9,7 +11,15 @@ loading = false, type = 'button' as 'button' | 'submit' | 'reset', label = '', - children, + children = undefined, + }: { + variant?: 'primary' | 'secondary' | 'ghost'; + size?: 'sm' | 'md' | 'large'; + disabled?: boolean; + loading?: boolean; + type?: 'button' | 'submit' | 'reset'; + label?: string; + children?: Snippet; } = $props(); const base =