API Reference

toggleMode

Programatically toggle the mode.

A function that can be used to programatically toggle the mode.

Usage

	<script lang="ts">
	import { toggleMode } from "mode-watcher";
</script>
 
<button on:click={toggleMode}>Toggle Mode</button>	
MIT

© 2024 Svecosystem Team