UNPKG

@cuvp1225/tango-mail

Version:
41 lines (40 loc) 1.07 kB
import { FontProps, TailwindConfig } from '@react-email/components'; import React from 'react'; export interface EmailProps extends React.ComponentPropsWithoutRef<'div'> { /** * 邮件标题 */ title?: string; /** * Identify the language of text content on the email * @default 'en' */ lang?: string; /** * Identify the direction of text content on the email * @default 'ltr' */ dir?: 'ltr' | 'rtl'; /** * A preview text that will be displayed in the inbox of the recipient. */ preview?: string; /** * head element * @example <style>{`body { background: '#fff'; } `}</style> */ head?: React.ReactNode; /** * 字体配置 */ fontConfig?: FontProps; /** * tailwindcss configuration */ tailwindConfig?: TailwindConfig; /** * 背景色 */ bg?: string; } export declare const Email: React.ForwardRefExoticComponent<EmailProps & import("@music163/tango-boot").TangoComponentProps & React.RefAttributes<unknown>>;