-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMjmlImage.tsx
50 lines (47 loc) · 1.36 KB
/
MjmlImage.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
47
48
49
50
/*
* 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 IMjmlImageProps {
alt?: string;
href?: string;
name?: string;
src?: string;
srcset?: string;
sizes?: string;
title?: string;
rel?: string;
/** MJML default value: center */
align?: "left" | "center" | "right";
/** MJML default value: 0 */
border?: React.CSSProperties["border"];
borderBottom?: string;
borderLeft?: string;
borderRight?: string;
borderTop?: string;
borderRadius?: React.CSSProperties["borderRadius"];
containerBackgroundColor?: string;
fluidOnMobile?: boolean;
/** MJML default value: 10px 25px */
padding?: string | number;
paddingBottom?: string | number;
paddingLeft?: string | number;
paddingRight?: string | number;
paddingTop?: string | number;
/** MJML default value: _blank */
target?: string;
width?: string | number;
/** MJML default value: auto */
height?: string | number;
maxHeight?: string | number;
fontSize?: string | number;
usemap?: string;
className?: string;
cssClass?: string;
mjmlClass?: string;
}
export function MjmlImage(props: IMjmlImageProps): JSX.Element {
return React.createElement("mj-image", convertPropsToMjmlAttributes(props));
}