{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "sonner-close-top-right",
  "title": "Toast with close button on top-right",
  "description": "Toast with close button on top-right, built from the sonner component.",
  "dependencies": [
    "sonner"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/patterns/sonner-close-top-right/sonner-close-top-right.tsx",
      "content": "/**\n * Toast with close button on top-right - adapted for tealmac UI from the ReUI example \"c-sonner-18\"\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 SonnerCloseTopRight() {\n  return (\n    <div className=\"flex items-center justify-center\">\n      <Button\n        onClick={() =>\n          toast(\"File uploaded successfully\", {\n            description: \"report-2025.pdf has been saved to your documents.\",\n            closeButton: true,\n            classNames: {\n              closeButton: \"start-auto! -end-4! -top-1!\",\n            },\n          })\n        }\n        variant=\"outline\"\n        className=\"w-fit\"\n      >\n        Toast with Close Button\n      </Button>\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}