- Uses a single source of truth (using a Ref Map) to track all active timers. This allows for global cleanup and precise control over each toast’s lifecycle.
- Only render the max number of toasts; any extras are held in a background queue and “popped” into view only as space opens up.
- If an identical message is triggered within a 3-second window, the system resets the existing timer instead of spawning a new toast if deduplication is enabled.
- The logic accounts for the EXIT_ANIMATION_DURATION, ensuring the component stays in the DOM just long enough for a smooth Framer Motion fade-out.
- Honors
prefers-reduced-motion
Toast Notifications
View SourceSuccess, error, and info notifications with deduplication and queueing
These notifications will automatically disappear after 3 seconds, or you can close them manually. Maximum 3 toasts visible at once.