Skip to content

younkues/shape-tri

Repository files navigation

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);