Closed sin911 closed 3 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
<Toaster position="top-left" />
Just set the style fo the Toaster component
Like @13RTK suggested, you can change the containerStyle of your <Toaster/>.
containerStyle
<Toaster/>
<Toaster containerStyle={{ top: "50%", }} />
Here is a demo.
<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