{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "heart-icon", "type": "registry:ui", "title": "Heart Icon", "description": "Heart icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/heart/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 HeartProps = IconProps;\n\nconst animations = {\n default: {\n group: {\n initial: {\n scale: 1,\n },\n animate: {\n scale: [1, 0.9, 1.2, 1],\n transition: { duration: 0.6, ease: 'easeInOut' },\n },\n },\n path: {},\n } satisfies Record,\n fill: {\n group: {\n initial: {\n scale: 1,\n },\n animate: {\n scale: [1, 0.9, 1.2, 1],\n transition: { duration: 0.6, ease: 'easeInOut' },\n },\n },\n path: {\n initial: {\n fill: 'currentColor',\n fillOpacity: 0,\n },\n animate: {\n fillOpacity: 1,\n transition: { delay: 0.2 },\n },\n },\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: HeartProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n );\n}\n\nfunction Heart(props: HeartProps) {\n return ;\n}\n\nexport {\n animations,\n Heart,\n Heart as HeartIcon,\n type HeartProps,\n type HeartProps as HeartIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/heart.tsx" } ], "meta": { "keywords": [ "like", "love", "emotion", "suit", "playing", "cards" ] } }