Skip to content
New issue

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

feat req: Ability to set the toaster position center. #486

Open
ilyasakin opened this issue Sep 11, 2024 · 5 comments
Open

feat req: Ability to set the toaster position center. #486

ilyasakin opened this issue Sep 11, 2024 · 5 comments

Comments

@ilyasakin
Copy link

Describe the feature / bug 📝:

Ability to set the toaster position "center".

<Toaster position="center" />
@ilyasakin ilyasakin changed the title Ability to set the toaster position center. feat req: Ability to set the toaster position center. Sep 11, 2024
@joewinger
Copy link
Contributor

^^ surprised to find this isn't already possible

@multivoltage
Copy link

Maybe is better position="center-center" | "center-right" | "center-left" ?

@Obiski15
Copy link

Obiski15 commented Oct 6, 2024

You can now do that using:

@emilkowalski
Copy link
Owner

What's your use case? To me it seems like bad UX to render in in the center of someone's screen.

@ilyasakin
Copy link
Author

@emilkowalski apparently mobile apps have that UX (although it is rarely used even in mobile).

I am working on a low code platform project that outputs React, iOS and Android code.

Since mobile have that kind of UX, we have to support center positioned toaster on React output too. So, we are currently using react-notifications-component at the moment, but we want to switch over to Sonner in the React output. This is the only thing keeping us from switching.

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

No branches or pull requests

5 participants