1.0.0 • Published 5 years ago

react-hex-image v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

react-hex-image

NPM JavaScript Style Guide

Install

npm install --save react-hex-image

Usage

import React, { Component } from 'react'

import MyComponent from 'react-hex-image'

class Example extends Component {
  state = {
    hexdata: [imgSrc, imgSrc2, imgSrc3], // Array
    hexwidth: "your Hexagon width", // Number
    hexbetween: "your Hexagon gap" // Number
  }

  render () {
    return (
      <MyComponent hexdata={this.state.hexdata} hexwidth={this.state.hexwidth} hexbetween={this.state.hexbetween} />
    )
  }
}

License

MIT © liyo1242