Components
A total with delta, a stacked share bar, and a ranked list of the contributors with their values.
Capital inflows
$12.4M+$390K
- WaveMark CapitalCapital in$7.93M
- Envato FinancesCapital in$3.21M
- QBridge TechCapital in$1.25M
"use client"
import * as React from "react"Installation#
pnpm dlx shadcn@latest add https://dashboardcn.com/r/distribution-card.jsonAlso installs card, button, dropdown-menu, tooltip from shadcn/ui if missing.
Usage#
import { DistributionCard } from "@/components/distribution-card"
<DistributionCard
title="Capital inflows"
total={12400000}
delta={390000}
valueLabel="Capital in"
items={[
{ name: "WaveMark Capital", value: 7928400, icon: <Gem />, color: "var(--color-teal-500)" },
{ name: "Envato Finances", value: 3214900, icon: <Hexagon />, color: "var(--color-amber-500)" },
{ name: "QBridge Tech", value: 1246300, icon: <Triangle />, color: "var(--color-orange-500)" },
]}
options={[
{ value: "3", label: "Top 3 funds" },
{ value: "5", label: "Top 5 funds" },
]}
/>Your dashboard, your code.
Every component is copied into your project with the shadcn CLI. No package to upgrade, nothing to override.