{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "pin-icon", "type": "registry:ui", "title": "Pin Icon", "description": "Pin icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/pin/index.tsx", "content": "'use client';\n\nimport * as React from 'react';\nimport { motion, Variants } from 'motion/react';\n\nimport {\n getVariants,\n useAnimateIconContext,\n IconWrapper,\n type IconProps,\n} from '@/components/animate-ui/icons/icon';\n\ntype PinProps = IconProps;\n\nconst animations = {\n default: {\n group: {\n initial: {\n scale: 1,\n rotate: 0,\n x: 0,\n y: 0,\n transformOrigin: 'bottom center',\n },\n animate: {\n scale: [1, 0.75, 1, 1],\n rotate: [0, 30, -15, 0],\n x: [0, 0, 0, 0],\n y: [0, -6, 0, 0],\n transformOrigin: 'bottom center',\n transition: { ease: 'easeInOut', duration: 1 },\n },\n },\n line: {},\n path: {},\n } satisfies Record,\n wiggle: {\n group: {\n initial: {\n rotate: 0,\n transformOrigin: 'bottom center',\n },\n animate: {\n rotate: [0, 15, -10, 0],\n transformOrigin: 'bottom center',\n transition: { ease: 'easeInOut', duration: 1 },\n },\n },\n line: {},\n path: {},\n } satisfies Record,\n rotate: {\n group: {\n initial: {\n transform: 'rotate3d(0, 1, 0, 0deg)',\n perspective: 600,\n },\n animate: {\n transform: 'rotate3d(0, 1, 0, 360deg)',\n perspective: 600,\n transition: { ease: 'easeInOut', duration: 0.7 },\n },\n },\n line: {},\n path: {},\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: PinProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n \n );\n}\n\nfunction Pin(props: PinProps) {\n return ;\n}\n\nexport {\n animations,\n Pin,\n Pin as PinIcon,\n type PinProps,\n type PinProps as PinIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/pin.tsx" } ], "meta": { "keywords": [ "pin", "map", "location", "lock", "fixed", "anchor" ] } }