fkhadra / react-toastify

React notification made easy 🚀 !
https://fkhadra.github.io/react-toastify/introduction
MIT License
12.33k stars 676 forks source link

[Feature Request] Fully centered position (not just top-center/bottom-center) #994

Closed FFdhorkin closed 8 months ago

FFdhorkin commented 10 months ago

Feature request:

What is the current behavior? One of: 'top-right', 'top-center', 'top-left', 'bottom-right', 'bottom-center', 'bottom-left'

What is the desired behavior? I'd like an option that centers the toast that is centered both horizontally and vertically. Basically, mix bottom-center and top-center.

I realize this can probably be done with css, but an integrated option would be preferable.

ShahriarKh commented 9 months ago

+1 for this. I'm also thinking of middle, so we get 9 positions: {top/middle/bottom}-{left/center/right}

fkhadra commented 8 months ago

I'll close the issue for now as this can be achieved with css. I'll reconsider it if I have more requests for it.