svelte-switch Svelte Themes

Svelte Switch

Sveltev3 switch component

Svelte switch

A simple switch component for sveltev3. Example can be found here.

Installing

npm i -D @mbeineris/svelte-switch

Usage

<script>
    import Switch from './Switch.svelte';

    let yes = false;
</script>

<Switch bind:checked={yes}></Switch>

License

This project is licensed under the MIT License.

Top categories

Loading Svelte Themes