1.0.0 • Published 5 years ago

@mbeineris/svelte-switch v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Svelte switch

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

Installing

npm i -D 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.