# Toast
A temporary notification message that appears and disappears automatically.
## Installation
Start from a Svelte 5 application, then install the component package, shared theme, and Bits UI peer:
```bash
pnpm add coss-svelte @coss-svelte/theme bits-ui
```
Import `@coss-svelte/theme/style-coss.css` after Tailwind from the application's global stylesheet.
## Usage
```svelte
```
## Anatomy
- `Toast`
- `ToastProvider`
## API Reference
### Toast
A temporary notification message that appears and disappears automatically.
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `title` | `string` | `""` | Title text rendered by the component's built-in fallback layout. |
| `description` | `string` | `""` | Supporting text rendered by the component's built-in fallback layout. |
| `bind:open` | `boolean` | `false` | Open state for the popup or disclosure. Bind with `bind:open`. |
| `dismissible` | `boolean` | `true` | Shows a dismiss button that hides the toast when activated. |
| `closeLabel` | `string` | `"Dismiss notification"` | Accessible label for the toast dismiss button. |
| `ondismiss` | `(() => void)` | - | Called after the toast is dismissed. |
**Composition and refs**
- `children: Snippet<[]>`
Inherits from [Svelte