MCPcopy 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

reducedMotionCheckFunction · 0.70
toggleExpandedFunction · 0.50

Calls 1

pauseMethod · 0.80

Tested by

no test coverage detected