MCPcopy Create free account
hub / github.com/TanStack/devtools / toggleTheme

Function toggleTheme

examples/solid/devtools-ui/src/index.tsx:32–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31 const toggleTheme = () => {
32 setTheme((prev) => (prev === 'dark' ? 'light' : 'dark'))
33 }
34
35 return (
36 <div class="app-shell">
37 <button type="button" class="theme-toggle" onClick={toggleTheme}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected