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

Function copyGradient

src/showcase/effects/gradients/GradientCards.tsx:160–165  ·  view source on GitHub ↗
(gradient: string)

Source from the content-addressed store, hash-verified

158 const [copied, setCopied] = useState(false)
159
160 const copyGradient = (gradient: string) => {
161 navigator.clipboard.writeText(gradient)
162 setCopied(true)
163 setTimeout(() => setCopied(false), 1000)
164 toast.success('Gradient copied to clipboard!')
165 }
166
167 const variants = {
168 hidden: { opacity: 0, scale: 0.5 },

Callers 1

GradientCardsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected