Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
dist
examples/image
src
.babelrc
.eslintignore
.eslintrc
.flowconfig
.gitignore
.travis.yml
LICENSE
README.md
dangerfile.js
package.json
webpack.build.js
webpack.config.js
yarn.lock

README.md

React Duotone Travis Build Status Airbnb JavaScript Style Guide styled with prettier

Example Duotone Image

Installation

npm install --save react-duotone

How to use

import React, { Component } from 'react';
import { render } from 'react-dom';
import { DuotoneImage } from 'react-duotone';

class App extends Component {
  render() {
    return <DuotoneImage
      className='image-preview'
      alt='Your image description'
      src='your-image.jpg'
      primaryColor='#FBFBFB'
      secondaryColor='#283B6B' />;
  }
}

render(<App />, document.getElementById('app'));

Examples

npm install
npm start