{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "toggle-left-icon", "type": "registry:ui", "title": "Toggle Left Icon", "description": "Toggle left icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/toggle-left/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 ToggleLeftProps = IconProps;\n\nconst animations = {\n default: {\n rect: {},\n circle: {\n initial: {\n x: 0,\n },\n animate: {\n x: [0, 7, 6],\n transition: {\n duration: 0.5,\n ease: 'easeInOut',\n },\n },\n },\n } satisfies Record,\n 'default-loop': {\n rect: {},\n circle: {\n initial: {\n x: 0,\n },\n animate: {\n x: [0, 7, 6, -1, 0],\n transition: {\n duration: 1,\n ease: 'easeInOut',\n },\n },\n },\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: ToggleLeftProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n );\n}\n\nfunction ToggleLeft(props: ToggleLeftProps) {\n return ;\n}\n\nexport {\n animations,\n ToggleLeft,\n ToggleLeft as ToggleLeftIcon,\n type ToggleLeftProps,\n type ToggleLeftProps as ToggleLeftIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/toggle-left.tsx" } ], "meta": { "keywords": [ "on", "off", "switch", "boolean" ] } }