3.2.0 • Published 6 years ago

react-progress-line v3.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

react-lineto

Draw a progress line between two elements in React.

Build Status

Getting Started

yarn install
yarn run demo

Browse to localhost:4567.

Example

import { Line } from 'react-lineto';

function render() {
    return (
        <Line x0={0} y0={0} x1={10} y1={10} />
    );
}

Properties

NameTypeDescriptionExample Values
borderColorstringBorder color#f00, red, etc.
borderStylestringBorder stylesolid, dashed, etc.
borderWidthnumberBorder width (px)
classNamestringDesired CSS className for the rendered element
withinstringCSS class name of the desired container
x0*numberFirst X coordinate
x1*numberSecond X coordinate
y0*numberFirst Y coordinate
y1*numberSecond Y coordinate
zIndexnumberZ-index offset
innerColorstringProgress Bar Color#00ff00, etc.

* Required

Release Checklist

  1. Bump version in package.json
  2. Update CHANGELOG.md
  3. Run yarn build or ./scripts/update
  4. Create version commit (ex. "2.0.0")
  5. Create matching tag (ex. "2.0.0")
  6. Push master branch and tags to origin
  7. Verify Travis CI published NPM package