UNPKG

@faire/mjml-react

Version:

React component library to generate the HTML emails on the fly

9 lines (8 loc) 331 B
import { MJMLParsingOptions, MJMLJsonObject, MJMLParseError } from "mjml-core"; import React from "react"; export interface ConvertedHtml { html: string; json?: MJMLJsonObject; errors?: MJMLParseError[]; } export declare function render(email: React.ReactElement, options?: MJMLParsingOptions): Promise<ConvertedHtml>;