Guide
Get Started
Start using Mode Watcher in your SvelteKit app.
Install the package
Install the mode-watcher
package from npm.
Add the ModeWatcher component
Add the <ModeWatcher />
component to your root +layout.svelte
file.
That's it!
You're now ready to use Mode Watcher in your Svelte app.
Here's an example of how to use the toggleMode
function to toggle the mode:
For additional information and configuration, please refer to the API reference.