{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "toast",
  "type": "registry:component",
  "title": "Toast",
  "description": "Slaps onto the bottom of the screen like a stamp, then lifts off after a few seconds. The wash behind it takes its kind (red for an error, green for success), and it can celebrate or wince when it lands.",
  "categories": [
    "feedback"
  ],
  "dependencies": [
    "@plop-ui/react",
    "@plop-ui/fonts"
  ],
  "registryDependencies": [
    "https://plopui.com/r/plop-setup.json"
  ],
  "files": [
    {
      "path": "registry/plopui/toast-example.tsx",
      "type": "registry:component",
      "target": "components/plop/toast-example.tsx",
      "content": "\"use client\";\n\nimport { Button, toast } from \"@plop-ui/react\";\n\n/** Toast: call toast() from anywhere. <PlopProvider> already shows them, so there's no <Toaster /> to add. */\nexport function ToastExample() {\n  return (\n    <>\n      <Button onClick={() => toast.success(\"Sketch posted\")}>Success</Button>\n      <Button variant=\"tomato\" onClick={() => toast.error(\"Couldn't post. Saved for later.\")}>\n        Error\n      </Button>\n      <Button variant=\"plain\" onClick={() => toast(\"Rosa liked your sketch\", { duration: 6000 })}>\n        Info\n      </Button>\n\n      {/* A burst when it lands (off by default): true picks confetti for success, a poof and a shake for error. */}\n      <Button variant=\"mint\" onClick={() => toast.success(\"All done!\", { burst: true, buddy: \"congrats\" })}>\n        Celebrate\n      </Button>\n      <Button variant=\"tomato\" onClick={() => toast.error(\"Couldn't post\", { burst: \"zap\" })}>\n        Zap\n      </Button>\n\n      {/* Behind a live toast: <PlopProvider toastBackdrop=\"solid\" | \"dots\" | \"none\">. */}\n    </>\n  );\n}\n"
    }
  ],
  "docs": "Example: components/plop/toast-example.tsx. Docs: https://plopui.com/docs/components/toast"
}
