Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ onThemeChange
Function
onThemeChange
packages/dev/s2-docs/src/ExampleSwitcher.tsx:91–93 ·
view source on GitHub ↗
(key: Key | null)
Source
from the content-addressed store, hash-verified
89
};
90
91
let onThemeChange = (key: Key | null) => {
92
setTheme(String(key));
93
};
94
95
return (
96
<div className={exampleStyle} data-example-switcher>
Callers
nothing calls this directly
Calls
1
String
Function · 0.85
Tested by
no test coverage detected