{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "host-button",
  "type": "registry:ui",
  "title": "Host button",
  "description": "Button styled with host tokens, 44px tap target.",
  "dependencies": [
    "class-variance-authority"
  ],
  "registryDependencies": [
    "https://mcpblocks.dev/r/host-tokens.json"
  ],
  "files": [
    {
      "path": "registry/mcpblocks/ui/host-button.tsx",
      "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\n/**\n * Button styled with MCP Apps host tokens.\n * 44px minimum height so it meets mobile tap-target guidance.\n */\nconst hostButtonVariants = cva(\n  \"inline-flex min-h-11 items-center justify-center gap-2 rounded-host-md px-4 text-sm font-semibold whitespace-nowrap transition-[opacity,background-color] outline-none focus-visible:ring-2 focus-visible:ring-host-ring disabled:pointer-events-none disabled:text-host-fg-disabled disabled:opacity-60 [&_svg]:size-4 [&_svg]:shrink-0\",\n  {\n    variants: {\n      variant: {\n        primary: \"bg-host-app-accent text-host-app-accent-fg hover:opacity-90\",\n        secondary:\n          \"border-[length:var(--border-width-regular,0.5px)] border-host-app-border bg-transparent text-host-app-fg hover:bg-host-app-surface-muted\",\n        ghost: \"bg-transparent text-host-app-fg hover:bg-host-app-surface-muted\",\n        danger:\n          \"bg-host-app-danger-bg text-white hover:opacity-90\",\n      },\n      block: {\n        true: \"w-full flex-1\",\n        false: \"\",\n      },\n    },\n    defaultVariants: {\n      variant: \"primary\",\n      block: false,\n    },\n  }\n)\n\nexport type HostButtonProps = React.ComponentProps<\"button\"> &\n  VariantProps<typeof hostButtonVariants>\n\nexport function HostButton({\n  className,\n  variant,\n  block,\n  type = \"button\",\n  ...props\n}: HostButtonProps) {\n  return (\n    <button\n      type={type}\n      data-slot=\"host-button\"\n      className={cn(hostButtonVariants({ variant, block }), className)}\n      {...props}\n    />\n  )\n}\n\nexport { hostButtonVariants }\n",
      "type": "registry:ui"
    }
  ]
}