Components
A balance or price card with a big value, delta, stat row, and a line chart with reference line and peak marker.
Current balance
$24,847.83+12.7%Last 24 hours
Today's sales$1,249.00+8.0%
High$25,900.08
Low$20,850.42
Change-0.062%
import { BalanceChartCard } from "@/registry/dashboardcn/blocks/balance-chart-card"
const data = Array.from({ length: 24 }, (_, hour) => ({Installation#
pnpm dlx shadcn@latest add https://dashboardcn.com/r/balance-chart-card.jsonAlso installs card, chart, tooltip from shadcn/ui if missing.
Usage#
import { BalanceChartCard } from "@/components/balance-chart-card"
<BalanceChartCard
title="Current balance"
value={24847.83}
delta={0.127}
deltaLabel="Last 24 hours"
stats={[
{ label: "High", value: 25900.08 },
{ label: "Low", value: 20850.42 },
]}
data={data}
xKey="time"
yKey="balance"
referenceValue={23400}
referenceLabel="Prev. close"
/>Your dashboard, your code.
Every component is copied into your project with the shadcn CLI. No package to upgrade, nothing to override.