Skip to content

feat: add toastLimit prop to Toaster#418

Open
braiekhazem wants to merge 2 commits intotimolins:mainfrom
braiekhazem:feat/max-toast-limit
Open

feat: add toastLimit prop to Toaster#418
braiekhazem wants to merge 2 commits intotimolins:mainfrom
braiekhazem:feat/max-toast-limit

Conversation

@braiekhazem
Copy link

Adds an optional toastLimit prop to <Toaster /> to limit the number of visible toasts.
when the limit is reached, the oldest toast is automatically dismissed.

This makes it easier to control toast overflow without re-implementing <Toaster /> logic.

Related issue: #31

Example usage:

<Toaster toastLimit={3} />

react-hot-toast gif issue

@vercel
Copy link

vercel bot commented Dec 24, 2025

@braiekhazem is attempting to deploy a commit to the timo's Team Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant