{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "gradient-text", "type": "registry:ui", "title": "Gradient Text", "description": "A text component featuring a smoothly animated gradient effect.", "dependencies": [ "motion" ], "files": [ { "path": "registry/text/gradient/index.tsx", "content": "'use client';\n\nimport * as React from 'react';\nimport { motion, type Transition } from 'motion/react';\n\nimport { cn } from '@/lib/utils';\n\ntype GradientTextProps = React.ComponentProps<'span'> & {\n text: string;\n gradient?: string;\n neon?: boolean;\n transition?: Transition;\n};\n\nfunction GradientText({\n text,\n className,\n gradient = 'linear-gradient(90deg, #3b82f6 0%, #a855f7 20%, #ec4899 50%, #a855f7 80%, #3b82f6 100%)',\n neon = false,\n transition = { duration: 50, repeat: Infinity, ease: 'linear' },\n ...props\n}: GradientTextProps) {\n const baseStyle: React.CSSProperties = {\n backgroundImage: gradient,\n };\n\n return (\n \n \n {text}\n \n\n {neon && (\n \n {text}\n \n )}\n \n );\n}\n\nexport { GradientText, type GradientTextProps };\n", "type": "registry:ui", "target": "components/animate-ui/text/gradient.tsx" } ] }