[READ-ONLY] Mirror of https://github.com/mayask/ink-react. Declarative email templates using react.js and ink.css
ink-react README.md
1.3 kB · 64 lines
Markdown

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