Launch sale — 60% off Pro
Contact
SonnerPromise

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React Sonner - Promise Toast with Data

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

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


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.

Pattern created by @haydenbleasel

Installation

Questions you might have