API Reference
Programatically toggle the mode.
A function that can be used to programatically toggle the mode.
<script lang="ts"> import { toggleMode } from "mode-watcher"; </script> <button on:click={toggleMode}>Toggle Mode</button>