diff --git a/packages/ui/src/lib/components/Switch/Switch.svelte b/packages/ui/src/lib/components/Switch/Switch.svelte index 34d2174b..4dc35cb6 100644 --- a/packages/ui/src/lib/components/Switch/Switch.svelte +++ b/packages/ui/src/lib/components/Switch/Switch.svelte @@ -75,44 +75,35 @@ const inputId = $derived(`input-${id}`); const labelId = $derived(`label-${id}`); - const descriptionId = $derived(description ? `description-${id}` : undefined); + const descriptionId = $derived(description ? `description-${id}` : restProps['aria-describedby']); - - - {#snippet child()} -
- {#if label} -
-
- {/if} - - - - -
- {/snippet} -
-
+
+ {#if label} +
+
+ {/if} + + + + + + + + + +