Skip to Content
Kokonut UI

CD-04Cards

Apple Activity Card

Activity rings that draw with a count-up, lap past 100% with a shadowed end cap and dim to focus, built with React and Motion.

Install with
motion

PROOnboarding Checklist and more like it are in Kokonut UI Pro

Installation

Apple Activity Card is a free, open-source React component in the Kokonut UI Cards collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/apple-activity-card.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/apple-activity-card

Or add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/apple-activity-card.tsx.

npm install motion

Usage

import AppleActivityCard from "@/components/kokonutui/apple-activity-card";

export default function Example() {
  return <AppleActivityCard />;
}

Props

title
stringDefault "Activity Rings"
titleAs
"h1" | "h2" | "h3" | "h4" | "h5" | "h6"Default "h2"

Heading level for the title, to fit the page outline.

activities
ActivityData[]Default built-in

Rings, outermost first. Defaults to sample data.

className
string

Extra classes for the root element.

Dependencies

NeedsVersionComes from
motion^12.23.25npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.