Simal UI
Components

ThemeToggle

Flips the app between light and dark.

It takes no props and writes straight to the app's colour-scheme store.

NOTE: in Storybook the canvas theme is driven by the toolbar switch (which uses uniwind's ScopedTheme), so pressing this control will not repaint the story. It is here to show the control itself.

Import

import { ThemeToggle } from '@simal/ui/nativewindui';

On this page