Components › Charts

Steps card

Daily steps against a dashed goal line. Days over the goal are lit.

Installation

npx plankui@latest add steps-card

Usage

import { StepsCard } from "@/components/ui/steps-card";

<StepsCard goal={10000} days={[{ label: "Mon", value: 8420 }]} />

API reference

PropTypeDefaultDescription
days{ label; value }[]a sample weekOne bar per day.
goalnumber10000Where the dashed line sits.

View the source on GitHub