<Switch />

form/switch.svelte

"With a flick of a switch, worlds are changed and opportunities arise"
Nikola Tesla, 1894

Component Switch examples :
Using slots
component Switch demo using slots
code

<Switch  name={'switcher'} class="w-small" >
  <span slot="label" />
</Switch>
Api preview :
__propDef: {
    props: {
        name: string;
        checked?: boolean | undefined;
        disabled?: boolean | undefined;
        class?: string | undefined;
        element?: HTMLElement | null | undefined;
        style?: string | undefined;
    };
    events: {
        [evt: string]: CustomEvent<any>;
    };
    slots: {
        label: {};
        default: {};
    };
};