Components › Charts

Chart card

The shell every chart card shares: title, number and change, the chart on a white panel, a footer.

Installation

npx plankui@latest add chart-card

Usage

import { ChartCard } from "@/components/ui/chart-card";

<ChartCard title="Active users" value="12,480" delta={9.4} action={<Segmented … />}>
  <LineChart … />
</ChartCard>

API reference

PropTypeDefaultDescription
title / valuestring / ReactNoderequiredHeader text and number.
delta / invertnumber / booleanChange pill.
actionReactNodeHeader controls.
footerReactNodeA takeaway under the chart.

View the source on GitHub