Issue getting styles to show with render function #1663
Replies: 2 comments
-
Here is what the markup looks like when inspecting the iframe when I run react-email
Here is the markup if I run the render funciton in my react app
|
Beta Was this translation helpful? Give feedback.
-
First thing I would say is don't use Material UI, unless they make components specific to React Email. React Email does not handle imported styles, which might be the cause of the problem here, and Material UI is meant for browser HTML not email HTML which means the support for email clients is going to be terrible. That being said, I can't vouch for the support we would have if used with something like MUI. |
Beta Was this translation helpful? Give feedback.
-
I am attempting to use some components from Material UI. When I create a react-email template using Material UI and run the react-email in the browser, the styles all render properly and if I use the built in "Send" feature in the UI that uses Resend, everything works as expected.
However, if I use the same exact email template and run it through the
render
function, the resulting HTML text does not contain any of the styles from Material UI. Not sure if anyone has tried using MUI and has run into this issue. Any help would be appreciated.Beta Was this translation helpful? Give feedback.
All reactions