{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "button",
  "title": "Button",
  "description": "A simple button that animates on hover and tap.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "@unlumen-ui/slot"
  ],
  "files": [
    {
      "path": "registry/primitives/button/index.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { motion, type HTMLMotionProps } from \"motion/react\";\n\nimport { Slot, type WithAsChild } from \"@/components/unlumen-ui/primitives/slot\";\n\ntype ButtonProps = WithAsChild<\n  HTMLMotionProps<\"button\"> & {\n    hoverScale?: number;\n    tapScale?: number;\n  }\n>;\n\nfunction Button({\n  hoverScale = 1.05,\n  tapScale = 0.95,\n  asChild = false,\n  ...props\n}: ButtonProps) {\n  const Component = asChild ? Slot : motion.button;\n\n  return (\n    <Component\n      whileTap={{ scale: tapScale }}\n      whileHover={{ scale: hoverScale }}\n      {...props}\n    />\n  );\n}\n\nexport { Button, type ButtonProps };\n",
      "type": "registry:ui",
      "target": "components/unlumen-ui/primitives/button.tsx"
    }
  ],
  "type": "registry:ui"
}