# Sonner Standard 1 - Default toast

> Default sonner toast using the shadcn Sonner component.

A shadcn/ui block from the [@shadcnblocks](https://shadcnblocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnblocks/sonner-sonner-standard-1).

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/sonner-sonner-standard-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/sonner-sonner-standard-1-light-27e4eef450b11c42.png
- Registry item: https://shadcnblocks.com/r/sonner-sonner-standard-1.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/sonner-sonner-standard-1.json
```

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

## Dependencies

- npm packages: `sonner`
- Registry items: `button`, `sonner`

## Files

### `example/sonner/sonner-standard-1.tsx`

```tsx
"use client";

import { toast } from "sonner";

import { Button } from "@/components/ui/button";
import { Toaster } from "@/components/ui/sonner";

export const title = "Default Toast";

const toasterId = "default-toast";

const Example = () => (
  <>
    <Button
      onClick={() => toast("Event has been created", { toasterId })}
      variant="outline"
    >
      Show Toast
    </Button>
    <Toaster id={toasterId} />
  </>
);

export default Example;
```
