Skip to Content

Activity Goal Card

Goal tracker card for fitness and habit dashboards: a large adjustable target with minus and plus buttons and a recharts bar chart where entries that meet the goal fill in the accent above a dashed line. Requires recharts 3.8.0.

pnpm dlx shadcn add @01orbital/activity-goal-card

Usage

import { ActivityGoalCard } from "@/components/card/activity-goal-card"

Needs props to render

Pass title, data, value, onValueChange, limits, labels; see the API reference below.

Examples

New

activity-goal-card-volunteer-hours

activity-goal-card-volunteer-hours

Volunteer Hours

Example of the Activity Goal Card: a volunteer-hours target you can raise or lower, with a folded shift estimate beneath the chart. The card is a dashboard goal or activity tracker with a chart.

pnpm dlx shadcn add @01orbital/activity-goal-card-volunteer-hours

API reference

A card with an adjustable activity goal and a bar chart of observations. The buttons request a new goal through onValueChange; the caller owns value. Bars meeting the goal are highlighted, with a summary below.

It takes no children. className and other props land on the Card.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: @phosphor-icons/react, cn, recharts@3.8.0. The CLI installs them for you.

Registry pieces it installs with it: