Use storybook for email preview #975
Replies: 2 comments 3 replies
-
Being able to change the props dynamically just like storybook on preview is definitely on my PR to-do list. Nice idea! Just a question, since I thought about this and wasn't exactly sure it would have so many use cases, in what use cases you wanted to have storybook exactly? |
Beta Was this translation helpful? Give feedback.
-
I've also been thinking about exactly this. One of the thoughts I had was that it'd be really nice for us to be able to show all our custom components as standalone stories in storybook so that email authors have an easy reference to all available components they can drop into their emails. I did actually try a crude manual integration but came unstuck as we're using the Tailwind integration with React email and I couldn't find a way to access the CSS that React.email generates when using the |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I've started using react-email a few weeks ago, and so far, this is the best email authoring solution I've found.
On my projects, I'm also a big user of Storybook and I really like the DX and the very well-balanced set of features.
So I had to try to fit in react-email into storybook and I made a gist with an example of story that renders an email. It's really just a first step and it can be improved upon. I hope it can help or even inspire others.
https://gist.github.com/bobylito/c006fd53daaccb7ea719e0531fe66e59
Beta Was this translation helpful? Give feedback.
All reactions