Design beautiful, responsive email templates for Novu workflows with React Email components and render them from your Framework email step.
React Email is a collection of high-quality, unstyled components for creating beautiful emails using React and TypeScript.
It’s a great way to build email templates that are consistent with your brand and easy to maintain.
Getting Started
1
Install React.Email components
npm install @react-email/components react-email
2
Write your email
interface TestEmailProps { name: string}export const TestEmailTemplate = ({ name }: TestEmailProps) => { return ( <Html> <Head /> <Body> <Container> Hello {name} welcome to your first React E-mail template! </Container> </Body> </Html> );};export default TestEmailTemplate;export function renderEmail(name: string) { return render(<TestEmailTemplate name={name} />);}