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
Is this supposed to work?
The position isn't taking.
const success = (message: string) => { toast.custom((t) => { t.position = "bottom-center"; return ( <Toast type="success"> <>{message}</> </Toast> ); }); };
It doesn't seem to.
The text was updated successfully, but these errors were encountered:
No, this won't work.
You can pass the position as second argument.
toast.custom("Custom", { position: "bottom-center" })
If you are trying to render custom content inside a success toast, there is no need for toast.custom(). You could do this:
toast.success(<h1>Custom Content</h1>, { position: "bottom-center" })
Sorry, something went wrong.
No branches or pull requests
Is this supposed to work?
The position isn't taking.
It doesn't seem to.
The text was updated successfully, but these errors were encountered: