{ "name": "connect", "type": "registry:ui", "registryDependencies": [], "dependencies": [ "motion" ], "devDependencies": [], "tailwind": {}, "cssVars": { "light": {}, "dark": {} }, "files": [ { "path": "connect.tsx", "content": "'use client';\n\nimport type { Variants } from 'motion/react';\nimport { motion, useAnimation } from 'motion/react';\n\nconst plugVariants: Variants = {\n normal: {\n x: 0,\n y: 0,\n },\n animate: {\n x: -3,\n y: 3,\n },\n};\n\nconst socketVariants: Variants = {\n normal: {\n x: 0,\n y: 0,\n },\n animate: {\n x: 3,\n y: -3,\n },\n};\n\nconst pathVariants = {\n normal: (custom: { x: number; y: number }) => ({\n d: `M${custom.x} ${custom.y} l2.5 -2.5`,\n }),\n animate: (custom: { x: number; y: number }) => ({\n d: `M${custom.x + 2.93} ${custom.y - 2.93} l0.10 -0.10`,\n }),\n};\n\nconst ConnectIcon = () => {\n const controls = useAnimation();\n\n return (\n