{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "expand-icon", "type": "registry:ui", "title": "Expand Icon", "description": "Expand icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/expand/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 ExpandProps = IconProps;\n\nconst animations = {\n default: {\n group1: {\n initial: {\n y: 0,\n x: 0,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n animate: {\n y: 2,\n x: 2,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n },\n group2: {\n initial: {\n y: 0,\n x: 0,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n animate: {\n y: -2,\n x: 2,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n },\n group3: {\n initial: {\n y: 0,\n x: 0,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n animate: {\n y: 2,\n x: -2,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n },\n group4: {\n initial: {\n y: 0,\n x: 0,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n animate: {\n y: -2,\n x: -2,\n transition: { duration: 0.3, ease: 'easeInOut' },\n },\n },\n path1: {},\n path2: {},\n path3: {},\n path4: {},\n path5: {},\n path6: {},\n path7: {},\n path8: {},\n } satisfies Record,\n 'default-loop': {\n group1: {\n initial: {\n y: 0,\n x: 0,\n },\n animate: {\n y: [0, 2, 0],\n x: [0, 2, 0],\n transition: { duration: 0.6, ease: 'easeInOut' },\n },\n },\n group2: {\n initial: {\n y: 0,\n x: 0,\n },\n animate: {\n y: [0, -2, 0],\n x: [0, 2, 0],\n transition: { duration: 0.6, ease: 'easeInOut' },\n },\n },\n group3: {\n initial: {\n y: 0,\n x: 0,\n },\n animate: {\n y: [0, 2, 0],\n x: [0, -2, 0],\n transition: { duration: 0.6, ease: 'easeInOut' },\n },\n },\n group4: {\n initial: {\n y: 0,\n x: 0,\n },\n animate: {\n y: [0, -2, 0],\n x: [0, -2, 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 path8: {},\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: ExpandProps) {\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 Expand(props: ExpandProps) {\n return ;\n}\n\nexport {\n animations,\n Expand,\n Expand as ExpandIcon,\n type ExpandProps,\n type ExpandProps as ExpandIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/expand.tsx" } ], "meta": { "keywords": [ "scale", "fullscreen", "maximize", "minimize", "contract" ] } }