{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bell-icon",
  "title": "Bell Icon",
  "description": "An animated bell icon that rings.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "registry/chamaac/animated-icons/bell-icon.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport {\n  m,\n  LazyMotion,\n  domAnimation,\n  SVGMotionProps,\n  Easing,\n} from \"motion/react\";\n\ninterface BellIconProps extends SVGMotionProps<SVGSVGElement> {\n  size?: number;\n  duration?: number;\n  strokeWidth?: number;\n  isHovered?: boolean;\n  repeatDelay?: number;\n  ease?: Easing;\n}\n\nconst BellIcon = (props: BellIconProps) => {\n  const {\n    size = 28, // Icon size in pixels\n    duration = 1.3, // Animation duration in seconds\n    strokeWidth = 2, // SVG stroke width\n    isHovered = false, // When true, animate only on hover\n    repeatDelay = 1, // Delay between animation loops (seconds)\n    ease = \"easeInOut\", // Animation easing function\n    className,\n    ...restProps\n  } = props;\n\n  const [isHoveredInternal, setIsHoveredInternal] = useState(false);\n\n  const shouldAnimate = isHovered ? isHoveredInternal : true;\n\n  const animationProps = {\n    animate: shouldAnimate\n      ? {\n          rotate: [0, -10, 10, -10, 10, 0, 0, 0],\n        }\n      : { rotate: 0 },\n    transition: {\n      duration: duration,\n      ease: ease,\n      repeat: isHovered ? 0 : Infinity,\n      repeatDelay: repeatDelay,\n    },\n  };\n\n  return (\n    <LazyMotion features={domAnimation}>\n      <m.svg\n        {...restProps}\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={strokeWidth}\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        className={className}\n        style={{ originX: \"12px\", originY: \"2px\" }}\n        onMouseEnter={() => isHovered && setIsHoveredInternal(true)}\n        onMouseLeave={() => isHovered && setIsHoveredInternal(false)}\n        {...animationProps}\n      >\n        <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n        <path d=\"M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6\" />\n        <path d=\"M9 17v1a3 3 0 0 0 6 0v-1\" />\n      </m.svg>\n    </LazyMotion>\n  );\n};\n\nexport default BellIcon;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}