{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "arrow-left-icon", "type": "registry:ui", "title": "Arrow Left Icon", "description": "Arrow left icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/arrow-left/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 ArrowLeftProps = IconProps;\n\nconst animations = {\n default: {\n group: {\n initial: {\n x: 0,\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n animate: {\n x: '-25%',\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n },\n path1: {},\n path2: {},\n } satisfies Record,\n 'default-loop': {\n group: {\n initial: {\n x: 0,\n },\n animate: {\n x: [0, '-25%', 0],\n transition: { ease: 'easeInOut', duration: 0.6 },\n },\n },\n path1: {},\n path2: {},\n } satisfies Record,\n pointing: {\n group: {},\n path1: {\n initial: {\n d: 'M19 12H5',\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n animate: {\n d: 'M19 12H10',\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n },\n path2: {\n initial: {\n d: 'm12 19-7-7 7-7',\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n animate: {\n d: 'm15.5 19-7-7 7-7',\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n },\n } satisfies Record,\n 'pointing-loop': {\n group: {},\n path1: {\n initial: {\n d: 'M19 12H5',\n },\n animate: {\n d: ['M19 12H5', 'M19 12H10', 'M19 12H5'],\n transition: { ease: 'easeInOut', duration: 0.6 },\n },\n },\n path2: {\n initial: {\n d: 'm12 19-7-7 7-7',\n },\n animate: {\n d: ['m12 19-7-7 7-7', 'm15.5 19-7-7 7-7', 'm12 19-7-7 7-7'],\n transition: { ease: 'easeInOut', duration: 0.6 },\n },\n },\n } satisfies Record,\n out: {\n group: {\n initial: {\n x: 0,\n },\n animate: {\n x: [0, '-150%', '150%', 0],\n transition: {\n default: { ease: 'easeInOut', duration: 0.8 },\n x: {\n ease: 'easeInOut',\n duration: 0.8,\n times: [0, 0.5, 0.5, 1],\n },\n },\n },\n },\n path1: {},\n path2: {},\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: ArrowLeftProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n \n );\n}\n\nfunction ArrowLeft(props: ArrowLeftProps) {\n return ;\n}\n\nexport {\n animations,\n ArrowLeft,\n ArrowLeft as ArrowLeftIcon,\n type ArrowLeftProps,\n type ArrowLeftProps as ArrowLeftIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/arrow-left.tsx" } ], "meta": { "keywords": [ "arrow", "left", "back", "previous", "direction", "west", "<-" ] } }