{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icons-chevrons",
  "title": "Chevrons",
  "description": "Animated double up-chevron that cross-fades between the two carets on trigger.",
  "dependencies": ["motion"],
  "files": [
    {
      "path": "registry/icons/chevrons/index.tsx",
      "content": "\"use client\";\n\nimport { motion, useReducedMotion } from \"motion/react\";\nimport type { SVGMotionProps } from \"motion/react\";\nimport { useState } from \"react\";\n\ninterface ChevronsProps extends Omit<SVGMotionProps<SVGSVGElement>, \"animate\"> {\n  /**\n   * Whether to trigger the caret animation.\n   * @default false\n   */\n  animate?: boolean;\n  /**\n   * Play the 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 animation indefinitely.\n   * @default false\n   */\n  loop?: boolean;\n  /**\n   * Icon size in pixels (applied to both width and height).\n   * @default 16\n   */\n  size?: number | string;\n}\n\nconst TOP_END = [0, 0, 0.15, 1, 1, 0.85, 0, 0.15, 1];\nconst BOTTOM_END = [0, 1, 1, 0.85, 0, 0, 0, 1, 1];\nconst TIMES_END = [0, 0.16, 0.21, 0.36, 0.51, 0.57, 0.71, 0.85, 1];\n\nfunction Chevrons({\n  size = 16,\n  color = \"currentColor\",\n  animate = false,\n  animateOnHover = true,\n  loop = false,\n  className,\n  onMouseEnter,\n  onMouseLeave,\n  ...props\n}: ChevronsProps) {\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={1.25}\n        viewBox=\"0 0 16 16\"\n        width={size}\n        xmlns=\"http://www.w3.org/2000/svg\"\n        {...props}\n      >\n        <path d=\"M5.2168 6.90625L8.3418 3.78125L11.4668 6.90625\" />\n        <path d=\"M5.2168 11.2812L8.3418 8.15625L11.4668 11.2812\" />\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={1.25}\n      viewBox=\"0 0 16 16\"\n      width={size}\n      xmlns=\"http://www.w3.org/2000/svg\"\n      {...props}\n    >\n      <motion.path\n        animate={\n          isTriggered\n            ? {\n                opacity: TOP_END,\n                transition: {\n                  duration: 1.05,\n                  ease: \"easeInOut\",\n                  times: TIMES_END,\n                  repeat: loop ? Number.POSITIVE_INFINITY : 0,\n                },\n              }\n            : { opacity: 1 }\n        }\n        d=\"M5.2168 6.90625L8.3418 3.78125L11.4668 6.90625\"\n        initial={{ opacity: 1 }}\n      />\n      <motion.path\n        animate={\n          isTriggered\n            ? {\n                opacity: BOTTOM_END,\n                transition: {\n                  duration: 1.05,\n                  ease: \"easeInOut\",\n                  times: TIMES_END,\n                  repeat: loop ? Number.POSITIVE_INFINITY : 0,\n                },\n              }\n            : { opacity: 1 }\n        }\n        d=\"M5.2168 11.2812L8.3418 8.15625L11.4668 11.2812\"\n        initial={{ opacity: 1 }}\n      />\n    </motion.svg>\n  );\n}\n\nexport {\n  Chevrons,\n  Chevrons as ChevronsIcon,\n  type ChevronsProps,\n  type ChevronsProps as ChevronsIconProps,\n};\n",
      "type": "registry:ui",
      "target": "components/sora-ui/icons/chevrons.tsx"
    }
  ],
  "meta": {
    "keywords": [
      "chevrons",
      "arrow",
      "up",
      "double",
      "scroll-top",
      "direction",
      "navigation"
    ],
    "releaseDate": "2026-08-05"
  },
  "type": "registry:ui"
}
