{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "trash-icon", "type": "registry:ui", "title": "Trash Icon", "description": "Trash icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/trash/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 TrashProps = IconProps;\n\nconst animations = {\n default: {\n group: {\n initial: {\n y: 0,\n },\n animate: {\n y: -1,\n transition: {\n duration: 0.3,\n ease: 'easeInOut',\n },\n },\n },\n path1: {},\n path2: {},\n path3: {\n initial: {\n y: 0,\n d: 'M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6',\n },\n animate: {\n y: 1,\n d: 'M19 8v12c0 1-1 2-2 2H7c-1 0-2-1-2-2V8',\n transition: {\n duration: 0.3,\n ease: 'easeInOut',\n },\n },\n },\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: TrashProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n \n \n );\n}\n\nfunction Trash(props: TrashProps) {\n return ;\n}\n\nexport {\n animations,\n Trash,\n Trash as TrashIcon,\n type TrashProps,\n type TrashProps as TrashIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/trash.tsx" } ], "meta": { "keywords": [ "garbage", "delete", "remove", "bin" ] } }