{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "cog-icon", "type": "registry:ui", "title": "Cog Icon", "description": "Cog icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/cog/index.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 '@/components/animate-ui/icons/icon';\n\ntype CogProps = IconProps;\n\nconst animations = {\n default: {\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: [0, 90, 180],\n transition: {\n duration: 1.25,\n ease: 'easeInOut',\n },\n },\n },\n path1: {},\n path2: {},\n path3: {},\n path4: {},\n path5: {},\n path6: {},\n path7: {},\n path8: {},\n path9: {},\n path10: {},\n path11: {},\n path12: {},\n path13: {},\n path14: {},\n } satisfies Record,\n 'default-loop': {\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: [0, 90, 180, 270, 360],\n transition: {\n duration: 2.5,\n ease: 'easeInOut',\n repeat: Infinity,\n repeatType: 'loop',\n },\n },\n },\n path1: {},\n path2: {},\n path3: {},\n path4: {},\n path5: {},\n path6: {},\n path7: {},\n path8: {},\n path9: {},\n path10: {},\n path11: {},\n path12: {},\n path13: {},\n path14: {},\n } satisfies Record,\n rotate: {\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: 360,\n transition: {\n duration: 2,\n ease: 'linear',\n repeat: Infinity,\n repeatType: 'loop',\n },\n },\n },\n path1: {},\n path2: {},\n path3: {},\n path4: {},\n path5: {},\n path6: {},\n path7: {},\n path8: {},\n path9: {},\n path10: {},\n path11: {},\n path12: {},\n path13: {},\n path14: {},\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: CogProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\nfunction Cog(props: CogProps) {\n return ;\n}\n\nexport {\n animations,\n Cog,\n Cog as CogIcon,\n type CogProps,\n type CogProps as CogIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/cog.tsx" } ], "meta": { "keywords": [ "computing", "settings", "cog", "edit", "gear", "preferences", "controls", "configuration", "fixed", "build", "construction", "parts" ] } }