MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / handleToggle

Function handleToggle

src/showcase/components/toggle/LabeledToggle.tsx:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 const springConfig = { type: 'spring', stiffness: 500, damping: 30 }
22
23 const handleToggle = () => {
24 const newState = !toggled
25 setToggled(newState)
26 if (onToggle) {
27 onToggle(newState)
28 }
29 }
30
31 const spanVariantBuilder = (side: string) => {
32 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected