🧑💻 (emails) Add decent emails management
Use mjml-react to generate emails. Put all emails in a independent package.
This commit is contained in:
15
packages/emails/components/Text.tsx
Normal file
15
packages/emails/components/Text.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import { MjmlText, MjmlTextProps, PaddingProps } from '@faire/mjml-react'
|
||||
import React from 'react'
|
||||
import { leadingRelaxed, textBase } from '../theme'
|
||||
|
||||
export const Text = (props: MjmlTextProps & PaddingProps) => (
|
||||
<MjmlText
|
||||
padding="24px 0 0"
|
||||
fontSize={textBase}
|
||||
lineHeight={leadingRelaxed}
|
||||
cssClass="paragraph"
|
||||
{...props}
|
||||
>
|
||||
{props.children}
|
||||
</MjmlText>
|
||||
)
|
Reference in New Issue
Block a user