{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "layers-icon", "type": "registry:ui", "title": "Layers Icon", "description": "Layers icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/layers/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 LayersProps = IconProps;\n\nconst animations = {\n default: {\n path1: {\n initial: {\n y: 0,\n },\n animate: {\n y: 5,\n transition: {\n duration: 0.3,\n ease: 'easeInOut',\n },\n },\n },\n path2: {},\n path3: {\n initial: {\n y: 0,\n },\n animate: {\n y: -5,\n transition: {\n duration: 0.3,\n ease: 'easeInOut',\n },\n },\n },\n } satisfies Record,\n 'default-loop': {\n path1: {\n initial: {\n y: 0,\n },\n animate: {\n y: [0, 5, 0],\n transition: {\n duration: 0.6,\n ease: 'easeInOut',\n },\n },\n },\n path2: {},\n path3: {\n initial: {\n y: 0,\n },\n animate: {\n y: [0, -5, 0],\n transition: {\n duration: 0.6,\n ease: 'easeInOut',\n },\n },\n },\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: LayersProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n );\n}\n\nfunction Layers(props: LayersProps) {\n return ;\n}\n\nexport {\n animations,\n Layers,\n Layers as LayersIcon,\n type LayersProps,\n type LayersProps as LayersIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/layers.tsx" } ], "meta": { "keywords": [ "stack", "pile", "pages", "sheets", "paperwork", "copies", "copy" ] } }