Closed leidsoncruz closed 2 years ago
Hi @leidsoncruz. Thanks for your suggestion. To keep things simple, I prefer to keep this logic outside the library.
For reference, this codesandbox showcases a similar hook to yours: https://codesandbox.io/s/react-hot-toast-responsive-position-with-breakpoints-rh276
It would be great to define positions for different breakpoints. For example, on a PC, tablets, and big screens, we could have the toast in the bottom right. But, for mobile, we want to have it in the middle of the screen.
I can create a hook to control that, but it'll not be a built-in feature.