UNPKG

@faire/mjml-react

Version:

React component library to generate the HTML emails on the fly

33 lines (32 loc) 1.19 kB
import React from "react"; export interface IMjmlSectionProps { backgroundColor?: React.CSSProperties["backgroundColor"]; backgroundUrl?: string; backgroundRepeat?: "repeat" | "no-repeat"; backgroundSize?: React.CSSProperties["backgroundSize"]; backgroundPosition?: React.CSSProperties["backgroundPosition"]; backgroundPositionX?: string; backgroundPositionY?: string; border?: React.CSSProperties["border"]; borderBottom?: string; borderLeft?: string; borderRadius?: React.CSSProperties["borderRadius"]; borderRight?: string; borderTop?: string; /** MJML default value: ltr */ direction?: "ltr" | "rtl"; fullWidth?: boolean; /** MJML default value: 20px 0 */ padding?: string | number; paddingTop?: string | number; paddingBottom?: string | number; paddingLeft?: string | number; paddingRight?: string | number; textAlign?: "left" | "center" | "right"; textPadding?: string | number; className?: string; cssClass?: string; mjmlClass?: string; children?: React.ReactNode; } export declare function MjmlSection({ children, ...props }: IMjmlSectionProps): React.JSX.Element;