Socket
Socket
Sign inDemoInstall

rc-progress

Package Overview
Dependencies
1
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rc-progress

progress ui component for react


Version published
Maintainers
2
Install size
15.1 kB
Created

Package description

What is rc-progress?

The rc-progress npm package provides React components for displaying progress information. It supports both line and circle (or pie) progress bars, allowing for customizable colors, sizes, and other properties to visually represent progress in a React application.

What are rc-progress's main functionalities?

Line Progress

This feature allows you to create a linear progress bar. You can customize the percentage of completion, the stroke width, and the color of the progress bar.

import { Line } from 'rc-progress';

<Line percent="70" strokeWidth="4" strokeColor="#D3D3D3" />

Circle Progress

This feature enables the creation of a circular progress bar. Similar to the line progress, you can customize the completion percentage, stroke width, and color.

import { Circle } from 'rc-progress';

<Circle percent="30" strokeWidth="4" strokeColor="#00FF00" />

Other packages similar to rc-progress

Readme

Source

rc-progress


progress ui component for react

NPM version SPM version build status Test coverage gemnasium deps node version npm download

Screenshots

Feature

  • support ie9+,chrome,firefox,safari

Keyboard

install

rc-progress

Usage

var Line = require('rc-progress').Line;
var Circle = require('rc-progress').Circle;
var React = require('react');
React.render(<div>
    <Line percent=“10” strokeWidth="4" strokeColor=“#D3D3D3” />
    <Circle percent=“10” strokeWidth="4" strokeColor=“#D3D3D3” />
  </div>, container);

API

props

nametypedefaultdescription
strokeWidthNumber1Width of the stroke. Unit is percentage of SVG canvas size.
strokeColorString#3FC7FA Stroke color.
trailWidthNumber1Width of the trail stroke. Unit is percentage of SVG canvas size. Trail is always centered relative to actual progress path. If trailWidth are not defined, it same as strokeWidth.
trailColorString#D9D9D9 Color for lighter trail stroke underneath the actual progress path.

Development

npm install
npm start

Example

http://localhost:8000/examples/

online example: http://react-component.github.io/progress/build/examples/

Test Case

http://localhost:8000/tests/runner.html?coverage

Coverage

http://localhost:8000/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8000/tests/runner.html?coverage

License

rc-progress is released under the MIT license.

Keywords

FAQs

Last updated on 16 Nov 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc