0.0.25 • Published 6 years ago
@ftw/email-builder v0.0.25
Email Builder
A React-based tool for building modern, responsive email templates which degrade "gracefully" in older clients.
Getting Started
- Create a "package.json" file (
yarn init
) - Run
yarn add "@ftw/email-builder" "react@>=16.3 <17" "react-dom@>=16.3 <17"
- Add a "start" script to your "package.json":
{ "scripts": { "start": "email-builder develop" } }
Create an "emails/EMAIL_NAME" directory and add an
index.js
file as an entry point for your email:// emails/newsletter/index.js import * as React from 'react'; import { Email, Section, renderEmail } from '@ftw/email-builder'; function Newsletter() { return ( <Email> <Section align="center"> <Section maxWidth={650} padding={{ top: 50, bottom: 80, left: 20, right: 20 }} > Hello world! </Section> </Section> </Email> ); } renderEmail(Newsletter);
Run
yarn start
in your project directory and open http://localhost:5000 in your browser.
0.0.25
6 years ago
0.0.24
6 years ago
0.0.23
6 years ago
0.0.22
6 years ago
0.0.21
6 years ago
0.0.20
7 years ago
0.0.19
7 years ago
0.0.18
7 years ago
0.0.17
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago