kulakowka / react-progress-label

progress label component

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-progress-label

npm 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

ezoic increase your site revenue

About

progress label component

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

License:ISC License


Languages

Language:JavaScript 84.5%Language:HTML 9.2%Language:CSS 6.3%