{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icons-bell",
  "title": "Bell",
  "description": "Notification bell that rattles from its hanger on trigger — a decaying rotation pivot.",
  "dependencies": ["motion"],
  "files": [
    {
      "path": "registry/icons/bell/index.tsx",
      "content": "\"use client\";\n\nimport { motion, useReducedMotion } from \"motion/react\";\nimport type { SVGMotionProps } from \"motion/react\";\nimport { useState } from \"react\";\n\ninterface BellProps extends Omit<SVGMotionProps<SVGSVGElement>, \"animate\"> {\n  /**\n   * Whether to trigger the rattle animation.\n   * @default false\n   */\n  animate?: boolean;\n  /**\n   * Play the rattle animation when the icon is hovered.\n   * @default true\n   */\n  animateOnHover?: boolean;\n  /**\n   * Any valid CSS color, mapped to the SVG `stroke`.\n   * @default \"currentColor\"\n   */\n  color?: string;\n  /**\n   * Repeat the rattle animation indefinitely.\n   * @default false\n   */\n  loop?: boolean;\n  /**\n   * Icon size in pixels (applied to both width and height).\n   * @default 24\n   */\n  size?: number | string;\n}\n\nconst RATTLE = [0, -8, 4, -2, 1, -0.5, 0.25, 0];\nconst BELL_BODY =\n  \"M20 16.191C20 16.6378 19.6378 17 19.191 17H4.80902C4.36221 17 4 16.6378 4 16.191C4 16.0654 4.02924 15.9415 4.08541 15.8292L5.21846 13.5631C5.40413 13.1917 5.51071 12.7859 5.53144 12.3712L5.70037 8.99251C5.86822 5.63561 8.6389 3 12 3C15.3611 3 18.1318 5.63561 18.2996 8.99251L18.4686 12.3712C18.4893 12.7859 18.5959 13.1917 18.7815 13.5631L19.9146 15.8292C19.9708 15.9415 20 16.0654 20 16.191Z\";\nconst BELL_CLAPPER =\n  \"M16 17C16 19.2091 14.2091 21 12 21C9.79086 21 8 19.2091 8 17\";\n\nfunction Bell({\n  size = 24,\n  color = \"currentColor\",\n  animate = false,\n  animateOnHover = true,\n  loop = false,\n  className,\n  onMouseEnter,\n  onMouseLeave,\n  ...props\n}: BellProps) {\n  const [isHovered, setIsHovered] = useState(false);\n  const reducedMotion = useReducedMotion();\n\n  const isTriggered = animate || (animateOnHover && isHovered);\n\n  if (reducedMotion) {\n    return (\n      <motion.svg\n        aria-hidden=\"true\"\n        className={className}\n        fill=\"none\"\n        height={size}\n        stroke={color}\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        strokeWidth={2}\n        viewBox=\"0 0 24 24\"\n        width={size}\n        xmlns=\"http://www.w3.org/2000/svg\"\n        {...props}\n      >\n        <path d={BELL_CLAPPER} />\n        <path d={BELL_BODY} strokeLinecap=\"square\" />\n      </motion.svg>\n    );\n  }\n\n  return (\n    <motion.svg\n      className={className}\n      fill=\"none\"\n      height={size}\n      onMouseEnter={(e) => {\n        setIsHovered(true);\n        if (typeof onMouseEnter === \"function\") {\n          onMouseEnter(e);\n        }\n      }}\n      onMouseLeave={(e) => {\n        setIsHovered(false);\n        if (typeof onMouseLeave === \"function\") {\n          onMouseLeave(e);\n        }\n      }}\n      stroke={color}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      strokeWidth={2}\n      viewBox=\"0 0 24 24\"\n      width={size}\n      xmlns=\"http://www.w3.org/2000/svg\"\n      {...props}\n    >\n      <motion.g\n        animate={\n          isTriggered\n            ? {\n                rotate: RATTLE,\n                transition: {\n                  duration: 0.6,\n                  ease: \"easeInOut\",\n                  repeat: loop ? Number.POSITIVE_INFINITY : 0,\n                },\n              }\n            : { rotate: 0 }\n        }\n        initial={{ rotate: 0 }}\n        style={{ transformOrigin: \"50% 24%\" }}\n      >\n        <path d={BELL_CLAPPER} />\n        <path d={BELL_BODY} strokeLinecap=\"square\" />\n      </motion.g>\n    </motion.svg>\n  );\n}\n\nexport {\n  Bell,\n  Bell as BellIcon,\n  type BellProps,\n  type BellProps as BellIconProps,\n};\n",
      "type": "registry:ui",
      "target": "components/sora-ui/icons/bell.tsx"
    }
  ],
  "meta": {
    "keywords": ["bell", "notification", "alert", "ring", "rattle", "inbox"],
    "releaseDate": "2026-08-05"
  },
  "type": "registry:ui"
}
