{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "chevrons-up-down-icon", "author": "tusharvarshney ", "description": "TBD", "dependencies": [ "motion" ], "files": [ { "path": "src/registry/components/chevrons-up-down-icon/chevrons-up-down-icon.tsx", "content": "\"use client\"\n\nimport { motion, useAnimation } from \"motion/react\"\nimport { forwardRef, useImperativeHandle } from \"react\"\n\nexport type ChevronsUpDownIconHandle = {\n startAnimation: () => void\n stopAnimation: () => void\n}\n\nexport type ChevronsUpDownIconProps = React.ComponentProps<\"svg\"> & {\n duration?: number\n}\n\nconst ChevronsUpDownIcon = forwardRef<\n ChevronsUpDownIconHandle,\n ChevronsUpDownIconProps\n>(({ duration = 0.3, ...props }, ref) => {\n const controls = useAnimation()\n\n useImperativeHandle(ref, () => {\n return {\n startAnimation: () => controls.start(\"animate\"),\n stopAnimation: () => controls.start(\"normal\"),\n }\n })\n\n return (\n \n \n \n \n )\n})\n\nChevronsUpDownIcon.displayName = \"ChevronsUpDownIcon\"\n\nexport { ChevronsUpDownIcon }\n", "type": "registry:component", "target": "@components/chevrons-up-down-icon.tsx" } ], "type": "registry:component" }