rc-progress is a lightweight, performant React UI component library providing fundamental progress indicators, specifically Line and Circle progress bars. It is currently stable at version 4.0.0, released in late 2023, with maintenance releases occurring periodically as needed. The library focuses on delivering unstyled, highly customizable SVG-based progress components, allowing developers full control over styling and animation via props like `strokeWidth`, `strokeColor`, and `percent`. It differentiates itself by offering a lean API for common progress scenarios without the overhead of a full UI component suite. The library ships with TypeScript type definitions, ensuring a robust development experience, and maintains compatibility with modern React versions (>=16.9.0) while also supporting older browsers like IE9+.
npm install rc-progressVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use both `Line` and `Circle` components with a dynamically updating percentage, illustrating basic usage and styling.
Update any usage of the `space` prop to `gap` (e.g., `space={10}` becomes `gap={10}`).Upgrade your project's React and ReactDOM versions to at least 16.9.0. Run `npm install react@^16.9.0 react-dom@^16.9.0` or `yarn add react@^16.9.0 react-dom@^16.9.0`.
Test in target browsers and include necessary polyfills if issues arise in older environments.
Install the package using `npm install rc-progress` or `yarn add rc-progress`. Verify the import path is correct.
Ensure you are using `import { Line, Circle } from 'rc-progress';` for ES Modules. If using CommonJS, explicitly destructure: `const { Line, Circle } = require('rc-progress');` (though ESM is preferred).Replace the `space` prop with `gap`. For example, change `<Line space={10} ... />` to `<Line gap={10} ... />`.