Skip to content

Declarative email templates using react.js and ink.css

License

Notifications You must be signed in to change notification settings

mayask/ink-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ink-react

ink-react is a set of React components for building responsive email templates.

Uses React and ZURB Ink undef the hood.

Installation

The package is not available on npm yet.

npm i --save ink-react

Usage

import React from 'react'
import ReactDOM from 'react-dom'
import {
  Email,
  Button,
  Container,
  Row, Col
} from 'ink-react'

ReactDOM.render((
  <Email>
    <Container>
      <Row>
        <Col width="four">
          <Button class="alert radius" href="#">Cancel</Button>
        </Col>
        <Col width="four">
          <Button class="success round" href="#">Click me</Button>
        </Col>
        <Col width="four">
          <Button class="success round" href="#">Click me</Button>
        </Col>
      </Row>
    </Container>
  </Email>
), document.getElementById('main'))

Documentation

Ink

The library uses Ink styles undef the hood. So you might want to check them out as well here.

Components

Grid components:

Controls

License

MIT

About

Declarative email templates using react.js and ink.css

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published