Sonner Promise 1 component design & features
This sonner example uses the shadcn Sonner component with toast.promise to track an async request from loading through success or error. The toast updates in place as the promise resolves.
Promise sonner components are the right choice for data loads, imports, and other async work where users need a loading state and a final result.
