{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "lightbulb-icon", "type": "registry:ui", "title": "Lightbulb Icon", "description": "Lightbulb icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/lightbulb/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 LightbulbProps = IconProps;\n\nconst animations = {\n default: {\n path1: {\n initial: {\n rotate: 0,\n fill: 'transparent',\n },\n animate: {\n transformOrigin: 'bottom center',\n fill: 'currentColor',\n rotate: [0, -20, 15, -7, 0],\n fillOpacity: [0, 1, 0, 1, 0],\n transition: {\n duration: 0.8,\n ease: 'easeInOut',\n rotate: {\n duration: 0.8,\n ease: 'easeInOut',\n times: [0, 0.4, 0.6, 0.8, 1],\n },\n fillOpacity: {\n duration: 0.3,\n ease: 'easeInOut',\n times: [0, 0.4, 0.6, 0.8, 1],\n delay: 0.4,\n },\n },\n },\n },\n path2: {\n initial: {\n rotate: 0,\n },\n animate: {\n transformOrigin: 'bottom center',\n rotate: [0, 0, 10, -5, 0],\n transition: {\n duration: 0.8,\n ease: 'easeInOut',\n times: [0, 0.4, 0.6, 0.8, 1],\n },\n },\n },\n path3: {},\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: LightbulbProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n );\n}\n\nfunction Lightbulb(props: LightbulbProps) {\n return ;\n}\n\nexport {\n animations,\n Lightbulb,\n Lightbulb as LightbulbIcon,\n type LightbulbProps,\n type LightbulbProps as LightbulbIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/lightbulb.tsx" } ], "meta": { "keywords": [ "idea", "bright", "lights" ] } }