From 5b1163ef2b28fc6adf53c6765633b17b7cfe6d3a Mon Sep 17 00:00:00 2001 From: Matt Nichols Date: Thu, 22 Feb 2024 12:15:34 -0800 Subject: [PATCH] chore: add event forwarding & types for default/ui/switch (#797) --- apps/www/src/lib/registry/default/ui/switch/switch.svelte | 3 +++ 1 file changed, 3 insertions(+) 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 >