Skip to content

Commit

Permalink
chore: add event forwarding & types for default/ui/switch (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
flatpickles authored Feb 22, 2024
1 parent a5b0004 commit 5b1163e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/www/src/lib/registry/default/ui/switch/switch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -16,6 +17,8 @@
className
)}
{...$$restProps}
on:click
on:keydown
>
<SwitchPrimitive.Thumb
class={cn(
Expand Down

0 comments on commit 5b1163e

Please sign in to comment.