---
title: "Toast"
description: "Toast notifications built on Base UI's Toast, with a provider, viewport, title, description, action, and status icons."
plan: Free
docs: https://ui.edbn.me/docs/components/toast
---

# Toast

Toast notifications built on Base UI's Toast, with a provider, viewport, title, description, action, and status icons.

## Installation

```bash
npx shadcn@4.19.0 add https://ui.edbn.me/r/toast.json
```

## Dependencies
- npm: @base-ui/react@^1.8.0, lucide-react@^1.33.0
- edbn: edbn-base, button

## Usage

```tsx examples/toast-basic.tsx
"use client";
import { Button } from "@/components/ui/button";
import { toast, Toaster as ToastToaster } from "@/components/ui/toast";

function ToastDemo() {
  return (
    <ToastToaster>
      <Button
        onClick={() =>
          toast.add({ title: "Saved", description: "Your changes are live." })
        }
      >
        Show toast
      </Button>
    </ToastToaster>
  );
}

export default function ToastBasicPreview() {
  return <ToastDemo />;
}
```

## Files
- components/ui/toast.tsx (244 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
