{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "map-pin-icon", "type": "registry:ui", "title": "Map Pin Icon", "description": "Map pin icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/map-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 MapPinProps = 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 circle: {},\n path: {},\n } satisfies Record,\n wiggle: {\n group: {\n initial: {\n rotate: 0,\n transformOrigin: 'bottom center',\n },\n animate: {\n rotate: [0, 12, -10, 0],\n transformOrigin: 'bottom center',\n transition: { ease: 'easeInOut', duration: 1 },\n },\n },\n circle: {},\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 circle: {},\n path: {},\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: MapPinProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n \n );\n}\n\nfunction MapPin(props: MapPinProps) {\n return ;\n}\n\nexport {\n animations,\n MapPin,\n MapPin as MapPinIcon,\n type MapPinProps,\n type MapPinProps as MapPinIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/map-pin.tsx" } ], "meta": { "keywords": [ "map", "pin", "location", "waypoint", "marker", "drop" ] } }