forked from Faire/mjml-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMjmlSocialElement.tsx
59 lines (56 loc) · 1.6 KB
/
MjmlSocialElement.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
51
52
53
54
55
56
57
58
59
/*
* 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 IMjmlSocialElementProps {
/** MJML default value: left */
align?: "left" | "center" | "right";
backgroundColor?: React.CSSProperties["backgroundColor"];
/** MJML default value: #000 */
color?: React.CSSProperties["color"];
borderRadius?: React.CSSProperties["borderRadius"];
fontFamily?: string;
fontSize?: string | number;
fontStyle?: string;
fontWeight?: string;
href?: string;
iconSize?: string | number;
iconHeight?: string | number;
iconPadding?: string | number;
lineHeight?: string | number;
name?: string;
paddingBottom?: string | number;
paddingLeft?: string | number;
paddingRight?: string | number;
paddingTop?: string | number;
/** MJML default value: 4px */
padding?: string | number;
textPadding?: string | number;
rel?: string;
src?: string;
srcset?: string;
sizes?: string;
alt?: string;
title?: string;
/** MJML default value: _blank */
target?: string;
textDecoration?: React.CSSProperties["textDecoration"];
verticalAlign?: "top" | "middle" | "bottom";
className?: string;
cssClass?: string;
mjmlClass?: string;
children?: React.ReactNode;
dangerouslySetInnerHTML?: { __html: string };
}
export function MjmlSocialElement({
children,
...props
}: IMjmlSocialElementProps): JSX.Element {
return React.createElement(
"mj-social-element",
convertPropsToMjmlAttributes(props),
children
);
}