1.0.0 • Published 5 years ago
react-hex-image v1.0.0
react-hex-image
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
1.0.0
5 years ago