# Toast/Notification

> A lightweight, highly accessible toast system built with React and Tailwind CSS. Unlike standard toast libraries, this component uses primitive composition (ToastTitle, ToastDescription, etc.), giving you total control over the layout.  16+ Animation Combos: Supports slide, fade, and zoom variants with mirrored entry/exit physics.  Smart Lifecycle: Imperative animation handling ensures smooth exits even when auto-dismissing.  Adaptive Styling: Full support for dark/light modes using semantic CSS variables.  Accessible: Built with aria-live regions and proper role="alert" attributes for screen readers.  Progress Tracking: Includes a visual countdown bar for auto-dismissible notifications.

- Author: [Jaivardhan Dalal](https://21st.dev/@jaivardhandalal)
- License: unknown
- Live preview: https://21st.dev/@jaivardhandalal/components/toast-notification

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/jaivardhandalal/toast-notification?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt
