{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icons-hugeicons-flash",
  "type": "registry:ui",
  "title": "Flash Icon",
  "description": "Flash icon component.",
  "dependencies": [
    "@animate-ui/react",
    "motion"
  ],
  "files": [
    {
      "path": "registry/hugeicons/flash/index.tsx",
      "type": "registry:ui",
      "target": "@components/animate-ui/icons/hugeicons/flash.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 FlashProps = IconProps<keyof typeof animations>;\n\nconst animations = {\n  default: {\n    group: {\n      initial: { scale: 1 },\n      animate: {\n        scale: [1, 0.9, 1.15, 1],\n        transition: { duration: 0.6, ease: 'easeInOut' },\n      },\n    },\n    path: {},\n  } satisfies Record<string, Variants>,\n  fill: {\n    group: {\n      initial: { scale: 1 },\n      animate: {\n        scale: [1, 0.9, 1.15, 1],\n        transition: { duration: 0.6, ease: 'easeInOut' },\n      },\n    },\n    path: {\n      initial: { fill: 'currentColor', fillOpacity: 0 },\n      animate: { fillOpacity: 1, transition: { delay: 0.2 } },\n    },\n  } satisfies Record<string, Variants>,\n  shake: {\n    group: {\n      initial: { scale: 1, rotate: 0 },\n      animate: {\n        scale: [1, 0.9, 1.08, 0.98, 1],\n        rotate: [0, -8, 8, -4, 0],\n        transition: { duration: 0.5, ease: 'easeInOut' },\n      },\n    },\n    path: {},\n  } satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: FlashProps) {\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      variants={variants.group}\n      initial=\"initial\"\n      animate={controls}\n      {...props}\n    >\n      <motion.path\n        d=\"M5.22576 11.3294L12.224 2.34651C12.7713 1.64397 13.7972 2.08124 13.7972 3.01707V9.96994C13.7972 10.5305 14.1995 10.985 14.6958 10.985H18.0996C18.8729 10.985 19.2851 12.0149 18.7742 12.6706L11.776 21.6535C11.2287 22.356 10.2028 21.9188 10.2028 20.9829V14.0301C10.2028 13.4695 9.80048 13.015 9.3042 13.015H5.90035C5.12711 13.015 4.71494 11.9851 5.22576 11.3294Z\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        variants={variants.path}\n        initial=\"initial\"\n        animate={controls}\n      />\n    </motion.svg>\n  );\n}\n\nfunction Flash(props: FlashProps) {\n  return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n  animations,\n  Flash,\n  Flash as FlashIcon,\n  type FlashProps,\n  type FlashProps as FlashIconProps,\n};\n"
    }
  ],
  "meta": {
    "keywords": [
      "lightning",
      "energy",
      "power",
      "bolt"
    ]
  }
}