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

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes