{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "toast-action-example",
  "title": "Toast Action",
  "description": "toast-action-example",
  "dependencies": [
    "sonner"
  ],
  "registryDependencies": [
    "https://intentui.com/r/button"
  ],
  "files": [
    {
      "path": "src/components/examples/statuses/toast/toast-action-example.tsx",
      "content": "'use client'\n\nimport { toast } from 'sonner'\nimport { Button } from '@/components/ui/button'\n\nexport default function ToastActionDemo() {\n  return (\n    <div className=\"flex gap-1.5\">\n      <Button\n        intent=\"outline\"\n        size=\"sm\"\n        onPress={() =>\n          toast('New comment on your post!', {\n            action: {\n              label: 'View',\n              onClick: () => alert('Viewed'),\n            },\n          })\n        }\n      >\n        Action\n      </Button>\n      <Button\n        intent=\"outline\"\n        size=\"sm\"\n        onPress={() =>\n          toast('New comment on your post!', {\n            action: {\n              label: 'View',\n              onClick: () => alert('Viewed'),\n            },\n            cancel: {\n              label: 'Cancel',\n              onClick: () => alert('Cancelled'),\n            },\n          })\n        }\n      >\n        Do or Not\n      </Button>\n      <Button\n        intent=\"outline\"\n        size=\"sm\"\n        onPress={() =>\n          toast('New comment on your post!', {\n            cancel: {\n              label: 'Cancel',\n              onClick: () => alert('Cancelled'),\n            },\n          })\n        }\n      >\n        Cancel\n      </Button>\n    </div>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/toast-action-example/page.tsx"
    }
  ],
  "type": "registry:page"
}