We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'use client'; import toast from 'react-hot-toast'; export default function Home() { const onClick = () => { toast.custom( () => ( <div className="bg-green-500"> <p>Hello!</p> <button onClick={() => toast.remove()}>remove</button> </div> ), { duration: 3000, } ); }; return ( <main className="flex min-h-screen flex-col items-center justify-between p-24"> <button onClick={onClick}>make me a toast</button> </main> ); }
demo: https://stackblitz.com/edit/stackblitz-starters-4valsx?file=app%2Fpage.tsx
and then the toast will not dismiss in 3000ms as it would be
The text was updated successfully, but these errors were encountered:
fix: issue timolins#367
9bab80f
Successfully merging a pull request may close this issue.
demo: https://stackblitz.com/edit/stackblitz-starters-4valsx?file=app%2Fpage.tsx
and then the toast will not dismiss in 3000ms as it would be
The text was updated successfully, but these errors were encountered: