forked from Faire/mjml-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMjmlHero.tsx
46 lines (43 loc) · 1.4 KB
/
MjmlHero.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* 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 interface IMjmlHeroProps {
/** MJML default value: fixed-height */
mode?: string;
/** MJML default value: 0px */
height?: string | number;
backgroundUrl?: string;
backgroundWidth?: string | number;
backgroundHeight?: string | number;
backgroundPosition?: React.CSSProperties["backgroundPosition"];
borderRadius?: React.CSSProperties["borderRadius"];
containerBackgroundColor?: string;
innerBackgroundColor?: string;
innerPadding?: string | number;
innerPaddingTop?: string | number;
innerPaddingLeft?: string | number;
innerPaddingRight?: string | number;
innerPaddingBottom?: string | number;
/** MJML default value: 0px */
padding?: string | number;
paddingBottom?: string | number;
paddingLeft?: string | number;
paddingRight?: string | number;
paddingTop?: string | number;
backgroundColor?: React.CSSProperties["backgroundColor"];
verticalAlign?: "top" | "bottom" | "middle";
className?: string;
cssClass?: string;
mjmlClass?: string;
children?: React.ReactNode;
}
export function MjmlHero({ children, ...props }: IMjmlHeroProps): JSX.Element {
return React.createElement(
"mj-hero",
convertPropsToMjmlAttributes(props),
children
);
}