@gfazioli/mantine-rings-progress

中文文档
4.1.18发布于 2026/11/09MITTypeScriptESM + CJS零依赖近 30 天下载 3705

A Mantine 9 concentric ring progress component inspired by Apple Watch activity rings — animated, glowing, accessible, with per-ring customization.

原始使用文档
文档目录5 节
  1. Overview
  2. Features
  3. Installation
  4. Usage
  5. Sponsor

Mantine Rings Progress Component

Mantine Rings Progress

mantine-rings-progress at a glance, refreshed daily: commits, releases, stars, issues and pull requests, a year of commit activity, the weekly rhythm, languages, latest commits and releases, contributors
Made with glancecard · refreshed daily

Overview

This component is created on top of the Mantine library. It requires Mantine 9.x and React 19.

Mantine Rings Progress is a Mantine UI extension that renders multiple concentric ring progress indicators — inspired by the Apple Watch activity rings. Each ring is defined by a value and color, and the component wraps native Mantine RingProgress instances with rich customization options.

Features

  • Per-ring customization — Override thickness, roundCaps, and rootColor on individual rings
  • Per-ring linear gradients — Paint a ring's stroke with a two-stop gradient via gradient: { from, to, deg? }
  • Per-ring value labels — showValues (or per-ring showValue) drops a styled pill at the endpoint of each arc, with custom formatValue
  • Per-ring interactions — onClick and onHover callbacks with geometric hit-testing, so the right ring fires even when their wrappers overlap
  • Entrance animation — Animate rings from 0 to their target values on mount
  • Staggered animation — Animate rings one after another with configurable delay
  • Animated value changes — animateValueChanges interpolates value updates after mount (great for live dashboards)
  • Glow / neon effect — drop-shadow glow that follows the ring shape, with per-ring intensity and color
  • Pulse on completion — Subtle pulse animation when a ring reaches 100%, with onRingComplete callback
  • Start angle & direction — Customize where rings start filling and in which direction (clockwise/counterclockwise)
  • Unified tooltip — withTooltip shows a chart-like tooltip with color swatches for all rings
  • Accessibility — role="progressbar" with ARIA attributes on each ring, keyboard activation for clickable rings, prefers-reduced-motion support
  • Central label — Display any React node (text, emoji, component) centered in the rings

[!note]

→ Demo and Documentation → Youtube Video → More Mantine Components

Installation

npm install @gfazioli/mantine-rings-progress

or

yarn add @gfazioli/mantine-rings-progress

After installation import package styles at the root of your application:

import '@gfazioli/mantine-rings-progress/styles.css';

Usage

import { RingsProgress } from '@gfazioli/mantine-rings-progress';

function Demo() {
  const rings = [
    { value: 75, color: 'green' },
    { value: 50, color: 'blue' },
    { value: 90, color: 'orange' },
  ];

  return (
    <RingsProgress
      size={180}
      rings={rings}
      animate
      staggerDelay={300}
      transitionDuration={1000}
      glow={6}
    />
  );
}

Sponsor

Your support helps me:

  • Keep the project actively maintained with timely bug fixes and security updates
  • Add new features, improve performance, and refine the developer experience
  • Expand test coverage and documentation for smoother adoption
  • Ensure long‑term sustainability without relying on ad hoc free time
  • Prioritize community requests and roadmap items that matter most

Open source thrives when those who benefit can give back—even a small monthly contribution makes a real difference. Sponsorships help cover maintenance time, infrastructure, and the countless invisible tasks that keep a project healthy.

Your help truly matters.

💚 Become a sponsor today and help me keep this project reliable, up‑to‑date, and growing for everyone.


https://github.com/user-attachments/assets/de494ff9-5e3c-4026-bdc3-0402110917e7

版本与发布记录

@gfazioli/mantine-rings-progress 共发布 69 个版本,首次发布于 2024/02/13;过去 12 个月发布了 30 个版本。

版本发布日期距今
4.1.18latest2026/11/096 天前
4.1.172026/11/069 天前
4.1.162026/10/2621 天前
4.1.152026/10/2224 天前
4.1.142026/10/131 个月前
4.1.132026/10/101 个月前

关于 @gfazioli/mantine-rings-progress 的常见问题

@gfazioli/mantine-rings-progress 是什么?

A Mantine 9 concentric ring progress component inspired by Apple Watch activity rings — animated, glowing, accessible, with per-ring customization.

如何安装 @gfazioli/mantine-rings-progress?

在项目目录运行 npm install @gfazioli/mantine-rings-progress,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^18.x || ^19.x)、react-dom(^18.x || ^19.x)、@mantine/core(>=9.0.0)、@mantine/hooks(>=9.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@gfazioli/mantine-rings-progress 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@gfazioli/mantine-rings-progress 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@gfazioli/mantine-rings-progress 可以商用吗?

@gfazioli/mantine-rings-progress 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@gfazioli/mantine-rings-progress 的下载量有多少?

根据 npm 官方下载统计,@gfazioli/mantine-rings-progress 在 2026/10/17 – 2026/11/15 这 30 天内被下载 3,705 次,日均约 124 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@gfazioli/mantine-rings-progress 还在维护吗?

最新版本 4.1.18 发布于 2026/11/09(6 天前);至今共发布 69 个版本,其中过去 12 个月发布了 30 个;首次发布于 2024/02/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。