{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "sonner-action-button",
  "title": "Toast with action button",
  "description": "Toast with action button, built from the sonner component.",
  "dependencies": [
    "sonner"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/patterns/sonner-action-button/sonner-action-button.tsx",
      "content": "/**\n * Toast with action button - adapted for tealmac UI from the ReUI example \"c-sonner-6\"\n * (https://github.com/keenthemes/reui), MIT License, Copyright (c) 2025\n * Keenthemes Inc. The full licence text is in THIRD_PARTY_NOTICES.md.\n * Changes: tealmac UI import paths and theme tokens, lucide icons, logical\n * (RTL-safe) spacing and alignment, reduced-motion support and sample\n * content.\n */\n\"use client\"\n\nimport { toast } from \"sonner\"\n\nimport { Button } from \"@/components/ui/button\"\n\nexport function SonnerActionButton() {\n  return (\n    <div className=\"flex items-center justify-center\">\n      <Button\n        onClick={() =>\n          toast(\"Message archived\", {\n            description: \"The conversation has been moved to archive.\",\n            action: {\n              label: \"Undo\",\n              onClick: () => toast.success(\"Action undone\"),\n            },\n          })\n        }\n        variant=\"outline\"\n        className=\"w-fit\"\n      >\n        Toast with Action\n      </Button>\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}