timolins / react-hot-toast

Smoking Hot React Notifications 🔥
https://react-hot-toast.com
MIT License
9.44k stars 309 forks source link

how to support center-center? #345

Closed sin911 closed 3 months ago

sin911 commented 4 months ago

<Toaster position="top-left" /> the position only has [top-left,top-center, top-right,bottom-left,bottom-center, bottom-right] But I want to use 'center-center' what should I do?Thanks

13RTK commented 3 months ago

Just set the style fo the Toaster component

timolins commented 3 months ago

Like @13RTK suggested, you can change the containerStyle of your <Toaster/>.

<Toaster
  containerStyle={{
    top: "50%",
  }}
/>

Here is a demo.