Fortura/apps/www/public/r/volume-off-icon.json
2025-08-20 04:12:49 -06:00

26 lines
2.9 KiB
JSON

{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "volume-off-icon",
"type": "registry:ui",
"title": "Volume Off Icon",
"description": "Volume off icon component.",
"dependencies": [
"motion"
],
"files": [
{
"path": "registry/icons/volume-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 VolumeOffProps = 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 } satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: VolumeOffProps) {\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=\"M16 9a5 5 0 0 1 .95 2.293\"\n variants={variants.path1}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M19.364 5.636a9 9 0 0 1 1.889 9.96\"\n variants={variants.path2}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"m2 2 20 20\"\n variants={variants.path3}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11\"\n variants={variants.path4}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M9.828 4.172A.686.686 0 0 1 11 4.657v.686\"\n variants={variants.path5}\n initial=\"initial\"\n animate={controls}\n />\n </motion.svg>\n );\n}\n\nfunction VolumeOff(props: VolumeOffProps) {\n return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n animations,\n VolumeOff,\n VolumeOff as VolumeOffIcon,\n type VolumeOffProps,\n type VolumeOffProps as VolumeOffIconProps,\n};\n",
"type": "registry:ui",
"target": "components/animate-ui/icons/volume-off.tsx"
}
],
"meta": {
"keywords": [
"music",
"sound",
"mute",
"speaker"
]
}
}