/polygon-maker

npm package for React: A Polygon Maker

Primary LanguageJavaScript

Make Polygons Instantly

A really basic React component published to npm. Use the Polygon maker to make 7 different polygons of any color easily.

Tutorial

  • COMING SOON

Example use

import Polygon from 'polygon-maker/dist';
import './App.css';

function App() {
  return (
    <div className="App-header">
      <Polygon shape="square" color="red"/>
      <Polygon shape="rectangle" color="coral"/>
      <Polygon shape="oval" color="yellow"/>
      <Polygon shape="triangleUp" color="green"/>
      <Polygon shape="triangleDown" color="blue"/>
      <Polygon shape="trapezoid" color="purple"/>
      <Polygon shape="parallelogram" color="pink"/>
    </div>
  );
}

export default App;

Result: