{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "menu-icon", "type": "registry:ui", "title": "Menu Icon", "description": "Menu icon component.", "dependencies": [ "motion" ], "files": [ { "path": "registry/icons/menu/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 MenuProps = IconProps;\n\nconst animations = {\n default: {\n line1: {\n initial: {\n rotate: 0,\n x: 0,\n y: 0,\n },\n animate: {\n rotate: -45,\n x: -2.35,\n y: 0.35,\n transformOrigin: 'top right',\n transition: {\n type: 'spring',\n stiffness: 200,\n damping: 20,\n },\n },\n },\n line2: {\n initial: {\n opacity: 1,\n },\n animate: {\n opacity: 0,\n transition: {\n ease: 'easeInOut',\n duration: 0.2,\n },\n },\n },\n line3: {\n initial: {\n rotate: 0,\n x: 0,\n y: 0,\n },\n animate: {\n rotate: 45,\n x: -2.35,\n y: -0.35,\n transformOrigin: 'bottom right',\n transition: {\n type: 'spring',\n stiffness: 200,\n damping: 20,\n },\n },\n },\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: MenuProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n );\n}\n\nfunction Menu(props: MenuProps) {\n return ;\n}\n\nexport {\n animations,\n Menu,\n Menu as MenuIcon,\n type MenuProps,\n type MenuProps as MenuIconProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/icons/menu.tsx" } ], "meta": { "keywords": [ "bars", "navigation", "hamburger", "options" ] } }