GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - react-component/progress: 📊 Lightweight React line and circle progress indicators with SVG rendering.

BranchesTags
Open more actions menu

Latest commit

 

History

217 Commits
217 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.husky
.husky
 
 
docs
docs
 
 
script
script
 
 
src
src
 
 
tests
tests
 
 
.dumirc.ts
.dumirc.ts
 
 
.editorconfig
.editorconfig
 
 
.fatherrc.ts
.fatherrc.ts
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
.prettierrc
.prettierrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
README.zh-CN.md
README.zh-CN.md
 
 
bunfig.toml
bunfig.toml
 
 
eslint.config.mjs
eslint.config.mjs
 
 
global.d.ts
global.d.ts
 
 
jest.config.js
jest.config.js
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
typings.d.ts
typings.d.ts
 
 
vercel.json
vercel.json
 
 

Repository files navigation

@rc-component/progress

Ant Design Part of the Ant Design ecosystem.

📊 Lightweight React line and circle progress indicators with SVG rendering.

NPM version npm downloads build status Codecov bundle size dumi

English | įŽ€äŊ“中文

Highlights

  • Line and Circle progress components rendered with SVG.
  • Single value, segmented value, gradient color, and indeterminate loading states.
  • Semantic classNames and styles slots for root, rail, and track customization.
  • TypeScript definitions for the shared progress props.

Install

npm install @rc-component/progress

Usage

import { Circle, Line } from '@rc-component/progress';
export default () => (
  <>
    <Line percent={42} strokeWidth={4} strokeColor="#1677ff" />
    <Circle percent={75} strokeWidth={6} strokeColor="#52c41a" />
  </>
);
import { Circle } from '@rc-component/progress';
export default () => (
  <Circle
    percent={[30, 20, 10]}
    strokeWidth={6}
    strokeColor={['#1677ff', '#52c41a', '#faad14']}
    railWidth={6}
  />
);

The SVG is decorative by default. When using it as the progress indicator itself, provide progress semantics and an accessible name with standard SVG/ARIA props:

<Line
  percent={42}
  role="progressbar"
  aria-label="Upload progress"
  aria-valuemin={0}
  aria-valuemax={100}
  aria-valuenow={42}
/>

Examples

Run the local dumi site:

npm install
npm start

Then open http://localhost:8000.

API

Line and Circle share the same base props.

Name Type Default Description
className string - Additional class name for the root node.
classNames Partial<Record<'root' | 'rail' | 'track', string>> - Semantic class names for internal slots.
gapDegree number - Gap degree for circle progress.
gapPosition 'top' | 'right' | 'bottom' | 'left' 'bottom' Gap position for circle progress.
id string - Root element id.
loading boolean false Render an indeterminate loading animation.
onClick React.MouseEventHandler - Click handler for the root SVG.
percent number | number[] 0 Progress percent. Arrays render multiple tracks.
prefixCls string 'rc-progress' Prefix class name.
railColor string '#D9D9D9' Rail color.
railWidth number 1 Rail stroke width.
steps number | { count: number; gap: number } - Render progress as discrete steps.
strokeColor string | Record<string, string | boolean> | Array<string | Record<string, string | boolean>> '#2db7f5' Track color, gradient object, or per-track colors.
strokeLinecap 'round' | 'butt' | 'square' 'round' Stroke line cap.
strokeWidth number 1 Track stroke width.
style React.CSSProperties - Root style.
styles Partial<Record<'root' | 'rail' | 'track', React.CSSProperties>> - Semantic styles for internal slots.
transition string - CSS transition for track updates.

Standard SVG attributes, including role and aria-*, are forwarded to the root SVG.

Development

npm install
npm start
npm test
npm run tsc
npm run compile
npm run build

The dumi site runs at http://localhost:8000 by default.

Release

npm run prepublishOnly

The release flow is handled by @rc-component/np through the rc-np command after the package build.

License

@rc-component/progress is released under the MIT license.

About

📊 Lightweight React line and circle progress indicators with SVG rendering.

react-component.github.io/progress

Topics

ant-designantdjavascriptprogressreactreact-component

Resources

Readme
Activity
Custom properties

Stars

708 stars

Watchers

23 watching

Forks

161 forks
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.