# Toast

Notification card with a status icon that slides in from an edge, holds, then slides back out.

```bash
npx shadcn add https://www.reelcn.dev/r/toast.json
```

Usage:

```tsx
<Toast variant="success" title="Deployed" description="Live in 12 regions" />
```

Use for:

- Confirming an action, a deploy, an upload or a saved state in a product demo
- A short system message that appears over a UI mockup

Avoid:

- A message pointing at part of the screen. Use `callout`


## Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| delay? | `number` | — | Frames to wait before entering. |
| duration? | `number` | — | Enter duration in frames. Defaults to 0.6s. Some items reuse `duration` for an unrelated local timing. See that item's own prop docs. |
| exit? | `number \| boolean` | — | Exit at the end of the parent `<Sequence>`. `false` keeps it on screen, a number sets the exit length in frames. |
| motion? | `MotionPersonality` | — | Override the theme's motion personality. |
| poster? | `boolean` | — | Renders fully entered, with no exit: for a still frame or thumbnail. Defaults to `false`. |
| holdFrames? | `number` | — | Delays the start of the exit window by this many frames, for a minimum on-screen hold. Defaults to `0`. |
| variant? | `ToastVariant` | `"info"` |  |
| title | `string` | — |  |
| description? | `string` | — |  |
| edge? | `"top" \| "top-right" \| "bottom" \| "bottom-right"` | — | Edge it slides from. Defaults to `top` in portrait, `bottom-right` otherwise. |
| width? | `number` | `380` | Card width in design units. |
| background? | `string` | — |  |
| borderColor? | `string` | — |  |
| titleColor? | `string` | — |  |
| descriptionColor? | `string` | — |  |
| accentColor? | `string` | — | Icon well and stroke color. Defaults per `variant`. |
| radius? | `number` | — | Corner radius in design units. Defaults to 70% of the theme radius. |
| style? | `CSSProperties` | — |  |
| className? | `string` | — |  |