Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 629 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 629 Bytes

shape-tri npm version

Make CSS Triangle Shape

$ npm install shape-tri

Options

import {tri} from "shape-tri";

tri({
  radius: string,
  strokeWidth: number | string,
  className?: string,
  container?: HTMLElement,
  fill?: string,
  direction?: string,
  stroke?: string
});

How to Use

<script src="//daybrush.github.io/shape-tri/release/latest/shapetri.min.js"></script>
import {tri} from "shape-tri";

const el = tri({radius: "100px", strokeWidth: "5px"});

document.body.appendChild(el);