35 lines
3.4 KiB
JSON
35 lines
3.4 KiB
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "refresh-cw-off-icon",
|
|
"type": "registry:ui",
|
|
"title": "Refresh Cw Off Icon",
|
|
"description": "Refresh cw off icon component.",
|
|
"dependencies": [
|
|
"motion"
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "registry/icons/refresh-cw-off/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 RefreshCwOffProps = IconProps<keyof typeof animations>;\n\nconst animations = {\n default: {\n group: {\n initial: {\n x: 0,\n },\n animate: {\n x: [0, '-7%', '7%', '-7%', '7%', 0],\n transition: { duration: 0.6, ease: 'easeInOut' },\n },\n },\n path1: {},\n path2: {},\n path3: {},\n path4: {},\n path5: {},\n path6: {},\n path7: {},\n } satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: RefreshCwOffProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n <motion.svg\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={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n variants={variants.group}\n initial=\"initial\"\n animate={controls}\n {...props}\n >\n <motion.path\n d=\"M21 8L18.74 5.74A9.75 9.75 0 0 0 12 3C11 3 10.03 3.16 9.13 3.47\"\n variants={variants.path1}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M8 16H3v5\"\n variants={variants.path2}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M3 12C3 9.51 4 7.26 5.64 5.64\"\n variants={variants.path3}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"m3 16 2.26 2.26A9.75 9.75 0 0 0 12 21c2.49 0 4.74-1 6.36-2.64\"\n variants={variants.path4}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M21 12c0 1-.16 1.97-.47 2.87\"\n variants={variants.path5}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M21 3v5h-5\"\n variants={variants.path6}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M22 22 2 2\"\n variants={variants.path7}\n initial=\"initial\"\n animate={controls}\n />\n </motion.svg>\n );\n}\n\nfunction RefreshCwOff(props: RefreshCwOffProps) {\n return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n animations,\n RefreshCwOff,\n RefreshCwOff as RefreshCwOffIcon,\n type RefreshCwOffProps,\n type RefreshCwOffProps as RefreshCwOffIconProps,\n};\n",
|
|
"type": "registry:ui",
|
|
"target": "components/animate-ui/icons/refresh-cw-off.tsx"
|
|
}
|
|
],
|
|
"meta": {
|
|
"keywords": [
|
|
"rotate",
|
|
"arrows",
|
|
"synchronise",
|
|
"reload",
|
|
"rerun",
|
|
"circular",
|
|
"cycle",
|
|
"cancel",
|
|
"no",
|
|
"stop",
|
|
"error",
|
|
"disconnect",
|
|
"ignore"
|
|
]
|
|
}
|
|
} |