{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icons-lucide-link",
  "type": "registry:ui",
  "title": "Link Icon",
  "description": "Link icon component.",
  "dependencies": [
    "@animate-ui/react",
    "motion"
  ],
  "files": [
    {
      "path": "registry/icons/link/index.tsx",
      "type": "registry:ui",
      "target": "@components/animate-ui/icons/link.tsx",
      "content": "'use client';\n\nimport * as React from 'react';\nimport { motion, type Variants } from 'motion/react';\n\nimport {\n  getVariants,\n  useAnimateIconContext,\n  IconWrapper,\n  type IconProps,\n} from '@animate-ui/react/icons';\n\ntype LinkProps = IconProps<keyof typeof animations>;\n\nconst animations = {\n  default: {\n    path1: {\n      initial: { x: 0, y: 0 },\n      animate: {\n        x: [0, 1, 0],\n        y: [0, -1, 0],\n        transition: {\n          duration: 0.6,\n          times: [0, 0.4, 1],\n          ease: ['easeOut', 'backOut'],\n        },\n      },\n    },\n    path2: {\n      initial: { x: 0, y: 0 },\n      animate: {\n        x: [0, -1, 0],\n        y: [0, 1, 0],\n        transition: {\n          duration: 0.6,\n          times: [0, 0.4, 1],\n          ease: ['easeOut', 'backOut'],\n        },\n      },\n    },\n  } satisfies Record<string, Variants>,\n  'default-loop': {\n    path1: {\n      initial: { x: 0, y: 0 },\n      animate: {\n        x: [0, 1, 0],\n        y: [0, -1, 0],\n        transition: {\n          duration: 0.8,\n          times: [0, 0.4, 1],\n          ease: ['easeOut', 'backOut'],\n        },\n      },\n    },\n    path2: {\n      initial: { x: 0, y: 0 },\n      animate: {\n        x: [0, -1, 0],\n        y: [0, 1, 0],\n        transition: {\n          duration: 0.8,\n          times: [0, 0.4, 1],\n          ease: ['easeOut', 'backOut'],\n        },\n      },\n    },\n  } satisfies Record<string, Variants>,\n  unlink: {\n    path1: {\n      initial: { x: 0, y: 0, transition: { duration: 0.3, ease: 'easeInOut' } },\n      animate: {\n        x: 1,\n        y: -1,\n        transition: { duration: 0.3, ease: 'easeInOut' },\n      },\n    },\n    path2: {\n      initial: { x: 0, y: 0, transition: { duration: 0.3, ease: 'easeInOut' } },\n      animate: {\n        x: -1,\n        y: 1,\n        transition: { duration: 0.3, ease: 'easeInOut' },\n      },\n    },\n  } satisfies Record<string, Variants>,\n  join: {\n    path1: {\n      initial: {\n        x: 0,\n        y: 0,\n        pathLength: 1,\n        transition: {\n          duration: 0.4,\n          ease: 'easeInOut',\n        },\n      },\n      animate: {\n        x: -1.5,\n        y: 1.5,\n        pathLength: 0.85,\n        transition: {\n          duration: 0.4,\n          ease: 'easeInOut',\n        },\n      },\n    },\n    path2: {\n      initial: {\n        x: 0,\n        y: 0,\n        pathLength: 1,\n        transition: {\n          duration: 0.4,\n          ease: 'easeInOut',\n        },\n      },\n      animate: {\n        x: 1.5,\n        y: -1.5,\n        pathLength: 0.85,\n        transition: {\n          duration: 0.4,\n          ease: 'easeInOut',\n        },\n      },\n    },\n  } satisfies Record<string, Variants>,\n  'join-loop': {\n    path1: {\n      initial: {\n        x: 0,\n        y: 0,\n        pathLength: 1,\n        transition: {\n          duration: 0.4,\n          ease: 'easeInOut',\n        },\n      },\n      animate: {\n        x: [0, -1.5, 0],\n        y: [0, 1.5, 0],\n        pathLength: [1, 0.85, 1],\n        transition: {\n          duration: 0.8,\n          ease: 'easeInOut',\n        },\n      },\n    },\n    path2: {\n      initial: {\n        x: 0,\n        y: 0,\n        pathLength: 1,\n        transition: {\n          duration: 0.4,\n          ease: 'easeInOut',\n        },\n      },\n      animate: {\n        x: [0, 1.5, 0],\n        y: [0, -1.5, 0],\n        pathLength: [1, 0.85, 1],\n        transition: {\n          duration: 0.8,\n          ease: 'easeInOut',\n        },\n      },\n    },\n  } satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: LinkProps) {\n  const { controls } = useAnimateIconContext();\n  const variants = getVariants(animations);\n\n  return (\n    <motion.svg\n      xmlns=\"http://www.w3.org/2000/svg\"\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke=\"currentColor\"\n      strokeWidth={2}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      {...props}\n    >\n      <motion.path\n        d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"\n        variants={variants.path1}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"\n        variants={variants.path2}\n        initial=\"initial\"\n        animate={controls}\n      />\n    </motion.svg>\n  );\n}\n\nfunction Link(props: LinkProps) {\n  return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n  animations,\n  Link,\n  Link as LinkIcon,\n  type LinkProps,\n  type LinkProps as LinkIconProps,\n};\n"
    }
  ],
  "meta": {
    "keywords": [
      "chain",
      "url"
    ]
  }
}