Home Reference Source Repository

React TinyLetter Component

David Gitter

Setup

$ npm install --save react-tinyletter

or...

$ yarn add react-tinyletter

Usage

import Subscribe from 'react-tinyletter'

...

<Subscribe list="TinyLetterUsername">
  <input type="email"/>
  <input type="submit" value="Subscribe"/>
</Subscribe>

Style it with <💅>

import Subscribe from 'react-tinyletter'
import styled from 'styled-components'

...

const StyledSubscribe = styled(Subscribe)`
  border: 1px solid deepskyblue;
  padding: 25px;
  width: 100%;
`
...
<StyledSubscribe list="TinyLetterUsername">
  <input type="email"/>
  <input type="submit" value="Subscribe"/>
</StyledSubscribe>

Documentation Reference

View the reference docs →

Contribution Guidelines

Authors

Author List →

License

The React Component Boilerplate is under the MIT License.