forked from Faire/mjml-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMjmlCarousel.tsx
44 lines (41 loc) · 1.16 KB
/
MjmlCarousel.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
/*
* 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 IMjmlCarouselProps {
/** MJML default value: center */
align?: "left" | "center" | "right";
borderRadius?: React.CSSProperties["borderRadius"];
containerBackgroundColor?: string;
iconWidth?: string | number;
leftIcon?: string;
padding?: string | number;
paddingTop?: string | number;
paddingBottom?: string | number;
paddingLeft?: string | number;
paddingRight?: string | number;
rightIcon?: string;
/** MJML default value: visible */
thumbnails?: "visible" | "hidden";
tbBorder?: string;
tbBorderRadius?: string | number;
tbHoverBorderColor?: string;
tbSelectedBorderColor?: string;
tbWidth?: string | number;
className?: string;
cssClass?: string;
mjmlClass?: string;
children?: React.ReactNode;
}
export function MjmlCarousel({
children,
...props
}: IMjmlCarouselProps): JSX.Element {
return React.createElement(
"mj-carousel",
convertPropsToMjmlAttributes(props),
children
);
}