JSPM

react-progress-label-bratchasak

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q11193F
  • License ISC

progress label component

Package Exports

  • react-progress-label-bratchasak

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-progress-label-bratchasak) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-progress-label

Build Status styled with prettier

progress label component copied from kirualex/KAProgressLabel with svg

screenshot

Installation

npm install react-progress-label --save

Demo

http://wangzuo.github.io/react-progress-label

Usage

import React from 'react';
import ProgressLabel from 'react-progress-label';

const App = () => {
  const progress = 50;
  const textStyle = {
    'fill': '#ffffff',
    'textAnchor': 'middle'
  };

  return (
    <ProgressLabel
      progress={progress}
      startDegree={60}
      progressWidth={8}
      trackWidth={20}
      cornersWidth={4}
      size={400}
      fillColor="black"
      trackColor="red"
      progressColor="green">

      <text x="200" y="200" style={textStyle}>{`${progress}%`}</text>

    </ProgressLabel>
  );
}

License

ISC