react-hex-image

1.0.0 • Public • Published

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

/react-hex-image/

    Package Sidebar

    Install

    npm i react-hex-image

    Weekly Downloads

    5

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    49.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • liyo1242