{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-button",
  "type": "registry:component",
  "title": "Icon Button",
  "description": "Compact labeled icon action for message toolbars.",
  "files": [
    {
      "path": "registry/tonic/icon-button/icon-button.tsx",
      "content": "\"use client\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport type IconButtonProps = Omit<\n  React.ComponentProps<\"button\">,\n  \"children\"\n> & {\n  label: string\n  children: React.ReactNode\n}\n\n/** Compact icon action with an accessible label (title + sr-only). */\nexport function IconButton({\n  children,\n  label,\n  className,\n  type = \"button\",\n  ...rest\n}: IconButtonProps) {\n  return (\n    <button\n      type={type}\n      title={label}\n      aria-label={label}\n      data-slot=\"icon-button\"\n      className={cn(\n        \"hover:bg-accent hover:text-accent-foreground inline-flex size-6 items-center justify-center rounded-md p-1 outline-none transition-colors focus-visible:ring-1 focus-visible:ring-ring/50 active:scale-90 disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4\",\n        className\n      )}\n      {...rest}\n    >\n      {children}\n      <span className=\"sr-only\">{label}</span>\n    </button>\n  )\n}\n",
      "type": "registry:component"
    }
  ]
}