-
Notifications
You must be signed in to change notification settings - Fork 14
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toast - customize theme and position #12
Comments
@abotalebie there is nothing particular other than overriding the CSS classes yourself - you can see the defaults here https://github.com/fumeapp/tailvue/blob/main/src/toast.ts#L6-L14 |
My question is exactly the same. |
well one idea: i set an #toasts {
@apply tailwind classes here;
} or maybe go after the children: #toasts > div {
@apply tailwind classes here;
} please report back if you try this and it works - be great for the docs |
Tanks, Yes It works I applied the changes with the following codes for move toasts to bottom of page and apply RTL direction #toasts {
align-self: end;
.mr-4 {
margin-right: 0;
margin-left: 1rem;
}
.ml-4 {
margin-right: 1rem;
margin-left: 0;
}
.ml-3 {
margin-right: 0;
margin-left: 0.75rem;
}
} But it would be better if there was a simple way to customize toasts position, classes and icons. |
Glad to hear this works - ill update the readme and think about a way to add official support when i get time - otherwise feel free to submit a PR |
Is there any way for customize toast theme and position?
The text was updated successfully, but these errors were encountered: