diff --git a/apps/www/src/lib/registry/default/ui/switch/switch.svelte b/apps/www/src/lib/registry/default/ui/switch/switch.svelte index abc28424d..732520728 100644 --- a/apps/www/src/lib/registry/default/ui/switch/switch.svelte +++ b/apps/www/src/lib/registry/default/ui/switch/switch.svelte @@ -3,6 +3,7 @@ import { cn } from "$lib/utils"; type $$Props = SwitchPrimitive.Props; + type $$Events = SwitchPrimitive.Events; let className: $$Props["class"] = undefined; export let checked: $$Props["checked"] = undefined; @@ -16,6 +17,8 @@ className )} {...$$restProps} + on:click + on:keydown >