Documentation Index
Fetch the complete documentation index at: https://mintlify.com/shadcn-ui/ui/llms.txt
Use this file to discover all available pages before exploring further.
The toast component has been deprecated. Use the Sonner component instead for toast notifications.
Migration to Sonner
Sonner is the recommended replacement for the toast component. It provides a better user experience with more features and better animations.Installation
Setup
Add the Toaster component to your root layout:app/layout.tsx
Usage
Examples
Why Sonner?
Sonner provides several advantages over the deprecated toast component:- Better animations and transitions
- Built-in support for promise-based toasts
- Action buttons and custom components
- Keyboard accessibility
- Position customization
- Expandable toasts
- Built-in theme support