Sonner Interactive 8 component design & features
This sonner example uses the shadcn Sonner component with onDismiss and onAutoClose. One callback runs when the user closes or swipes the toast, and the other runs when the duration expires.
Lifecycle callbacks belong in analytics, follow-up toasts, or cleanup after a notification leaves the screen.
