One metric with its value, context, change and an optional trend slot.
DefaultBareDecimalChangeChart slot
Live components with example content. Try their controls, or switch the theme and palette.
Usage
"use client";
import { MetricCard } from "@/components/charts/arc/metric-card/metric-card";
export default function Example() {
return (
<>
<MetricCard label="Conversations" value={1280} context="Last 30 days" change="+12%" />
</>
);
}
Included variants
- Default
- Bare
- Decimal
- Change
- Chart slot
In Ciele
Use the workspace imports shown above inside Ciele. App components use the shared Tailwind tokens in globals.css. For another project, adapt the imports and bring the dependencies listed in the source.
Source files
- apps/web/src/components/charts/arc/metric-card/metric-card.tsx
Source code
The implementation used by Ciele, including its supporting components. Original attribution and license notices remain in the files.
Loading source files…