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.
This example is composed with Storybook args. Open the interactive workbench to change its props and inspect the generated API controls.
Import
import { ThemeToggle } from '@simal/ui/nativewindui';