Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

Promise Toast with Data

A Sonner promise toast that uses resolved promise data in the success message for personalized feedback

Generic success messages are boring—use the data you just fetched! This React promise toast with data interpolation personalizes success messages. Built with Sonner and shadcn/ui, the success callback receives promise data—perfect for user creation confirmations, record updates, search results, API responses, data mutations, or any async operation where showing specific details (names, IDs, counts) in the success message provides better feedback than generic confirmation messages.

Promise Toast with Data preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.