Activity Rings
Apple Watch-style concentric progress rings: gradient strokes sweep in on a spring, overshooting 100% laps over itself with a shadowed tip, and the legend numbers roll up.
Try it: Watch the rings close; pass new values to animate.
Brings its own background. Paints its own ink watch-face disc in both themes (rings read best on black); the legend adapts with dark: variants.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/activity-rings.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/activity-rings. You can also copy the source into components/ui/activity-rings.tsx (view on GitHub).
Usage
import { ActivityRings } from '@/components/ui/activity-rings'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
rings | ActivityRing[] | Move / Exercise / Stand | { label, value, goal, unit, from, to, track } |
size / stroke | number | 200 / 20 | Diameter and stroke width in px. |
showLegend | boolean | true | Show the numeric legend. |
Dependencies
motionlucide-react
Related Website Sections components
- Glass Mega Navbar
A full-width bar that contracts into a floating glass pill on scroll. Menus open into one mega panel that slides between sections with a blur, a hover pill glides between triggers, and phones get a…
- Spotlight Command Palette
A cmdk-style ⌘K launcher: fuzzy grouped results, a highlight that springs between rows, nested pages (Backspace to go back), key-cap hints and full combobox semantics with focus restore.
- Pricing Plans
Three-tier pricing with a sliding monthly/yearly switch whose numerals roll digit by digit, a highlighted ink plan with a light rim, and a “you save” chip that springs in on yearly.
- Glass App Dock
A macOS-style dock: icons magnify on a spring with a cosine falloff around the pointer, labels float above, launching bounces the icon and lights a running dot. Keyboard focus magnifies too.
- FAQ Accordion
A two-column FAQ: rows expand on a height spring, the plus rotates into a cross, the open row lifts onto a soft surface and answers un-blur in. ↑ ↓ Home End move between questions.
- Changelog Timeline
Release notes on a timeline with sticky dates, popping dots, generated cover art and a filter (All / New / Improved / Fixed) that re-flows each change list on springs.