{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "like-button",
  "title": "Like Button",
  "description": "A ready-made labeled action built from the composable Like primitive.",
  "dependencies": [
    "class-variance-authority"
  ],
  "registryDependencies": [
    "button",
    "https://ui.ericts.com/r/like.json"
  ],
  "files": [
    {
      "path": "registry/base/ui/like-button.tsx",
      "content": "\"use client\";\n\nimport type { VariantProps } from \"class-variance-authority\";\n\nimport { buttonVariants } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\nimport { Like, type LikeProps } from \"./like\";\n\nexport type LikeButtonProps = LikeProps & VariantProps<typeof buttonVariants>;\n\n/** A ready-made labeled button built from the composable Like primitive. */\nexport function LikeButton({\n  children = \"Like\",\n  className,\n  iconSize = 16,\n  size = \"default\",\n  variant = \"outline\",\n  ...props\n}: LikeButtonProps) {\n  return (\n    <Like\n      className={cn(buttonVariants({ variant, size }), className)}\n      iconSize={iconSize}\n      {...props}\n    >\n      {children}\n    </Like>\n  );\n}\n",
      "type": "registry:ui",
      "target": "@ui/like-button.tsx"
    }
  ],
  "meta": {
    "tags": [
      "like",
      "heart",
      "favorite",
      "toggle",
      "button"
    ],
    "effects": [
      "radial-fill",
      "press-scale",
      "mini-heart-scatter",
      "reduced-motion"
    ]
  },
  "categories": [
    "action"
  ],
  "type": "registry:ui"
}