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

Function handleClick

src/showcase/components/button/EcoModeButton.tsx:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 const leafControls = useAnimation()
10
11 const handleClick = async () => {
12 setIsActivated(!isActivated)
13 await leafControls.start({
14 scale: [1, 1.2, 1],
15 rotate: [0, 10, -10, 0],
16 transition: { duration: 0.5 },
17 })
18 }
19
20 return (
21 <motion.button

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected