{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "shrink-icon", "type": "registry:ui", "title": "Shrink Icon", "description": "Shrink icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/shrink/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 ShrinkProps = IconProps;\n\nconst animations = {\n default: {\n path1: {\n initial: {\n y: 0,\n x: 0,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n animate: {\n y: -1,\n x: -1,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n },\n path2: {\n initial: {\n y: 0,\n x: 0,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n animate: {\n y: 1,\n x: -1,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n },\n path3: {\n initial: {\n y: 0,\n x: 0,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n animate: {\n y: -1,\n x: 1,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n },\n path4: {\n initial: {\n y: 0,\n x: 0,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n animate: {\n y: 1,\n x: 1,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n },\n } satisfies Record,\n 'default-loop': {\n path1: {\n initial: {\n y: 0,\n x: 0,\n },\n animate: {\n y: [0, -1, 0],\n x: [0, -1, 0],\n transition: { duration: 0.6, ease: 'easeInOut' },\n },\n },\n path2: {\n initial: {\n y: 0,\n x: 0,\n },\n animate: {\n y: [0, 1, 0],\n x: [0, -1, 0],\n transition: { duration: 0.6, ease: 'easeInOut' },\n },\n },\n path3: {\n initial: {\n y: 0,\n x: 0,\n },\n animate: {\n y: [0, -1, 0],\n x: [0, 1, 0],\n transition: { duration: 0.6, ease: 'easeInOut' },\n },\n },\n path4: {\n initial: {\n y: 0,\n x: 0,\n },\n animate: {\n y: [0, 1, 0],\n x: [0, 1, 0],\n transition: { duration: 0.6, ease: 'easeInOut' },\n },\n },\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: ShrinkProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n \n );\n}\n\nfunction Shrink(props: ShrinkProps) {\n return ;\n}\n\nexport {\n animations,\n Shrink,\n Shrink as ShrinkIcon,\n type ShrinkProps,\n type ShrinkProps as ShrinkIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/shrink.tsx" } ], "meta": { "keywords": [ "scale", "fullscreen", "maximize", "minimize", "contract" ] } }