0.4.2 • Published 7 years ago

react-svg-arrow v0.4.2

Weekly downloads
1,136
License
MIT
Repository
github
Last release
7 years ago

react-svg-arrow

A React component for tooltip and popover arrows

npm version

Usage

const React = require('react');
const Arrow = require('react-svg-arrow');

const App = () => (
  React.createElement(Arrow, {
    size: 25,
    color: 'red',
    direction: 'right',
    borderWidth: 5,
    borderColor: 'blue'
  })
);

Why?

Creating arrows with borders in HTML/CSS is a pain.

react-svg-arrow features:

  • No psuedo element hacks
  • No clipping hacks
  • No transform/rotation hacks
  • Just a plain SVG element with a single path
0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago