{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "toast6",
  "title": "Sonner toast",
  "description": "An opinionated toast component for React.",
  "files": [
    {
      "path": "contents/components/sonner-toast/6/index.tsx",
      "content": "\"use client\";\n\nimport { Button } from \"@/components/ui/button\";\nimport { toast } from \"sonner\";\n\nexport default function ToastComponent() {\n  const handleOrderPlaced = () => {\n    toast.success(\"Order confirmed\", {\n      description: \"Your order #12345 has been placed and will be processed shortly.\",\n      duration: 4000,\n      action: {\n        label: \"View Order\",\n        onClick: () => {\n          toast.info(\"Redirecting to order details...\");\n        }\n      }\n    });\n  };\n\n  return (\n    <Button variant=\"outline\" onClick={handleOrderPlaced}>\n      Place Order\n    </Button>\n  );\n}\n\n",
      "type": "registry:component",
      "target": "components/toast6.tsx"
    }
  ],
  "type": "registry:component"
}