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 card around a data table: title, description, toolbar, rows, and pagination in the footer.
Top products
Units sold and revenue, ranked.
| Stock | ||||
|---|---|---|---|---|
Hoodie — heatherHD-450 | out | 618 | 44 | $37.1K |
Field Notes — 3 packFN-003 | in stock | 1,284 | 12 | $19.3K |
Water bottleWB-330 | in stock | 486 | 6 | $14.6K |
Enamel mugMG-011 | low | 942 | 31 | $14.1K |
Cap — six panelCP-120 | low | 512 | 19 | $12.8K |
1–5 of 10
Page 1 of 2
"use client"
import * as React from "react"A card around the data table: title, description, toolbar, rows, and pagination in the footer. It is the table block for shadcn/ui dashboards, ready for a list of customers, orders, or invoices.
Installation#
pnpm dlx shadcn@latest add @dashboardcn/data-table-cardAlso installs card, table, button, input, dropdown-menu, checkbox, skeleton from shadcn/ui if missing.
Usage#
import { DataTableCard } from "@/components/data-table-card"
<DataTableCard
title="Top products"
description="Units sold and revenue, ranked."
columns={columns}
data={products}
searchKey="product"
initialSorting={[{ id: "revenue", desc: true }]}
density="compact"
pageSize={5}
pageSizeOptions={[5, 10, 25]}
toolbar={<PeriodTabs value={period} onValueChange={setPeriod} size="sm" />}
/>Your dashboard, your code.
Every component is copied into your project with the shadcn CLI. No package to upgrade, nothing to override.