-
-
Notifications
You must be signed in to change notification settings - Fork 236
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to remove inherent padding? #333
Comments
There is a way to render your custom components . Customize this in your own way toast.message(<MyComponent/>) |
In my experience, doing this causes the positioning classes to work inaccurately. |
You can use See live demo. toast(<CustomToast />)
<Toaster
position="bottom-center"
className="w-full flex items-center justify-center"
toastOptions={{
unstyled: true,
}}
/> |
Describe the feature / bug 馃摑:
I'm styling my
Sonner
component via classnames, and they don't take up the same amount of width as the default styles. Essentially the default styles have too much horizontal padding. If I remove the default padding by adding a class such asw-fit
the toasts that fire don't appear centered anymore.For further context, the toasts are configured in my root layout to be
bottom-center
.The text was updated successfully, but these errors were encountered: