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
-
Hey all.
I have a problem in my project with customize ToastContainer via
styled
from@emotion/styled
. Here is an example:and usage of styled component:
At this point when i trigger
toast()
function toast component have defaultlight
theme istead ofdark
. But after switching tostyled-components
everything works as it should. Doesreact-toastify
has support of@emotion/styled
or i should use onlystyled-components
for 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