{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "battery-medium-icon", "type": "registry:ui", "title": "Battery Medium Icon", "description": "Battery Medium icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/battery-medium/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 BatteryMediumProps = IconProps;\n\nconst animations = {\n default: {\n rect: {},\n line1: {},\n line2: {\n initial: {\n opacity: 1,\n scale: 1,\n },\n animate: {\n opacity: 0,\n scale: 0,\n transition: {\n opacity: {\n duration: 0.3,\n ease: 'easeInOut',\n repeat: 1,\n repeatType: 'reverse',\n repeatDelay: 0,\n },\n scale: {\n duration: 0.3,\n ease: 'easeInOut',\n repeat: 1,\n repeatType: 'reverse',\n repeatDelay: 0,\n },\n },\n },\n },\n line3: {\n initial: {\n opacity: 1,\n scale: 1,\n },\n animate: {\n opacity: 0,\n scale: 0,\n transition: {\n opacity: {\n duration: 0.3,\n ease: 'easeInOut',\n repeat: 1,\n repeatType: 'reverse',\n repeatDelay: 0.3,\n },\n scale: {\n duration: 0.3,\n ease: 'easeInOut',\n repeat: 1,\n repeatType: 'reverse',\n repeatDelay: 0.3,\n },\n },\n },\n },\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: BatteryMediumProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n \n );\n}\n\nfunction BatteryMedium(props: BatteryMediumProps) {\n return ;\n}\n\nexport {\n animations,\n BatteryMedium,\n BatteryMedium as BatteryMediumIcon,\n type BatteryMediumProps,\n type BatteryMediumProps as BatteryMediumIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/battery-medium.tsx" } ], "meta": { "keywords": [ "power", "electricity", "energy", "accumulator", "charge" ] } }