Components
- Activity Heatmap
- Activity Rings
- Bar Chart
- Bar List
- Command Palette
- Composed Chart
- Corner Frame
- Data Table
- Delta Badge
- Distribution Bar
- Donut Chart
- Dot Plot
- Funnel Chart
- Heatmap Chart
- KPI Card
- Metric List
- Metric Value
- Period Tabs
- Radar Chart
- Radial Gauge
- Sankey Chart
- Scatter Chart
- Segmented Meter
- Sparkline
- Tick Bar
- Timeline
- Trend Chart
Blocks
- Activity Rings Card
- Allocation Card
- Balance Chart Card
- Breakdown Card
- Commerce KPI Row
- Contributions Card
- Data Table Card
- Distribution Card
- Dot Plot Card
- Dual Metric Card
- Funnel Chart Card
- Goal Chart Card
- Heatmap Chart Card
- Insight Card
- KPI Row Card
- Metric Tabs Chart Card
- Payment Summary Card
- Period Bar Chart Card
- Progress Card
- Revenue Ring Card
- Ring KPI Card
- Score Gauge Card
- Stage Bars Card
- Status Gauge Card
- Tick KPI Card
A total with delta and a list of contributors, each with a value and a hatched bar showing its share.
Gross volume
$41,540+15.0%
- Online payments$26,800
- Subscriptions$10,400
- In-store sales$4,340
import { Ellipsis } from "lucide-react"
import { Button } from "@/components/ui/button"A total with delta and a list of contributors, each with a value and a hatched bar showing its share. A lighter alternative to a pie chart for gross volume, revenue mix, or cost breakdowns.
Installation#
pnpm dlx shadcn@latest add @dashboardcn/breakdown-cardAlso installs card, tooltip from shadcn/ui if missing.
Usage#
import { BreakdownCard } from "@/components/breakdown-card"
<BreakdownCard
title="Gross volume"
total={41540}
delta={0.15}
items={[
{ name: "Online payments", value: 26800, color: "var(--color-emerald-500)" },
{ name: "Subscriptions", value: 10400, color: "var(--color-blue-500)" },
{ name: "In-store sales", value: 4340, color: "var(--color-pink-500)" },
]}
/>Your dashboard, your code.
Every component is copied into your project with the shadcn CLI. No package to upgrade, nothing to override.