36 lines
2.7 KiB
JSON
36 lines
2.7 KiB
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "message-circle-off-icon",
|
|
"type": "registry:ui",
|
|
"title": "Message Circle Off Icon",
|
|
"description": "Message circle off icon component.",
|
|
"dependencies": [
|
|
"motion"
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "registry/icons/message-circle-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 MessageCircleOffProps = 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 } satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: MessageCircleOffProps) {\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=\"M20.5 14.9A9 9 0 0 0 9.1 3.5\"\n variants={variants.path1}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"m2 2 20 20\"\n variants={variants.path2}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M5.6 5.6C3 8.3 2.2 12.5 4 16l-2 6 6-2c3.4 1.8 7.6 1.1 10.3-1.7\"\n variants={variants.path3}\n initial=\"initial\"\n animate={controls}\n />\n </motion.svg>\n );\n}\n\nfunction MessageCircleOff(props: MessageCircleOffProps) {\n return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n animations,\n MessageCircleOff,\n MessageCircleOff as MessageCircleOffIcon,\n type MessageCircleOffProps,\n type MessageCircleOffProps as MessageCircleOffIconProps,\n};\n",
|
|
"type": "registry:ui",
|
|
"target": "components/animate-ui/icons/message-circle-off.tsx"
|
|
}
|
|
],
|
|
"meta": {
|
|
"keywords": [
|
|
"comment",
|
|
"chat",
|
|
"conversation",
|
|
"dialog",
|
|
"feedback",
|
|
"speech bubble",
|
|
"clear",
|
|
"close",
|
|
"delete",
|
|
"remove",
|
|
"cancel",
|
|
"silence",
|
|
"mute",
|
|
"moderate"
|
|
]
|
|
}
|
|
} |