Loading resource
Compositions
The same light and dark theme control used throughout the application.
Use ThemeToggle inside ThemeProvider.
src/components/theme-toggle.tsx
The preview imports your production components. Open Code for the complete working example, including its imports.
Use Tab to inspect keyboard focus, switch themes, and try the controls. Reset restores the example’s initial state.