@faire/mjml-react
Version:
React component library to generate the HTML emails on the fly
17 lines (16 loc) • 550 B
JavaScript
/*
* This file is generated. Don't edit it directly.
* Modify `scripts/generate-mjml-react.ts` to make changes to these files
*/
import React from "react";
import { convertPropsToMjmlAttributes } from "../utils";
export function MjmlStyle({ children, ...props }) {
return React.createElement("mj-style", {
...convertPropsToMjmlAttributes(props),
dangerouslySetInnerHTML: {
__html: props.dangerouslySetInnerHTML
? props.dangerouslySetInnerHTML.__html
: children,
},
});
}