The way to customize ToastContainer via @emotion/styled #1195
Unanswered
aopanasenko
asked this question in
Q&A
Replies: 1 comment
-
|
Hey @aopanasenko, I'm wondering if both |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all.
I have a problem in my project with customize ToastContainer via
styledfrom@emotion/styled. Here is an example:and usage of styled component:
At this point when i trigger
toast()function toast component have defaultlighttheme istead ofdark. But after switching tostyled-componentseverything works as it should. Doesreact-toastifyhas support of@emotion/styledor i should use onlystyled-componentsfor css-in-js customization?Dependencies:
"react-dom": "18.3.1",
"react": "18.3.1",
"@rsbuild/core": "1.0.9",
"react-toastify": "10.0.5",
"@emotion/css": "^11.13.5",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@swc/plugin-emotion": "4.0.3"
Beta Was this translation helpful? Give feedback.
All reactions