Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ toggle
Function
toggle
packages/dev/docs/src/client.js:292–298 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
290
}
else
{
291
for
(
let
v of videos) {
292
let
toggle = () => {
293
if
(v.paused) {
294
v.play();
295
}
else
{
296
v.pause();
297
}
298
};
299
if
(v.paused) {
300
v.play();
301
}
Callers
2
reducedMotionCheck
Function · 0.70
toggleExpanded
Function · 0.50
Calls
1
pause
Method · 0.80
Tested by
no test coverage detected