{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "timer-icon", "type": "registry:ui", "title": "Timer Icon", "description": "Timer icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/timer/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 TimerProps = IconProps;\n\nconst animations = {\n default: {\n circle: {},\n line1: {\n initial: {\n rotate: 0,\n transition: { ease: 'easeInOut', duration: 0.6 },\n },\n animate: {\n transformOrigin: 'bottom left',\n rotate: 360,\n transition: { ease: 'easeInOut', duration: 0.6, delay: 0.15 },\n },\n },\n line2: {\n initial: {\n y: 0,\n },\n animate: {\n y: [0, 1.5, 0],\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n },\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: TimerProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n );\n}\n\nfunction Timer(props: TimerProps) {\n return ;\n}\n\nexport {\n animations,\n Timer,\n Timer as TimerIcon,\n type TimerProps,\n type TimerProps as TimerIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/timer.tsx" } ], "meta": { "keywords": [ "time", "timer", "stopwatch" ] } }