# P toast 11

> Deduplicated error toast

A shadcn/ui block from the [@coss](https://coss.com/ui) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/coss/p-toast-11).

- Page, with a live preview: https://shadcn.exchange/r/coss/p-toast-11
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/coss/p-toast-11-light-6a21b5f1cd790f19.png
- Registry item: https://coss.com/ui/r/p-toast-11.json
- Categories: toast, button, error
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://coss.com/ui/r/p-toast-11.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@coss/button`, `@coss/toast`

## Files

### `registry/default/particles/p-toast-11.tsx`

```tsx
"use client";

import { Button } from "@/registry/default/ui/button";
import { toastManager } from "@/registry/default/ui/toast";

const ERROR_TOAST_ID = "coss-demo-error-upsert";

export default function Particle() {
  return (
    <Button
      onClick={() => {
        toastManager.add({
          description:
            "Repeated clicks update this toast; errors use a shake animation.",
          id: ERROR_TOAST_ID,
          title: "Something went wrong",
          type: "error",
        });
      }}
      variant="outline"
    >
      One Error Toast
    </Button>
  );
}
```
