Design System
Widgets

Chart card

A titled card wrapping a chart, with a headline value and trend above it.

Not documented yet

This component ships in the design system and is fully supported. What is missing is the guidance around it: when to reach for it, the do and don't, and the accessibility notes. Until that is written, Storybook is the reference for variants, props and live controls.

Props

PropTypeDefaultDescription
titlerequiredstringCard heading, e.g. "Claims volume (7 days)".
valueReact.ReactNodeOptional headline metric shown under the title.
trend{ value: string; direction: "up" | "down"; good?: boolean; } | undefinedOptional trend pill. `direction` sets the arrow; colour follows `good` (defaults to `true` when the direction is `up`).
datarequiredRecord<string, string | number>[]Chart series data — one object per point.
dataKeyrequiredstringKey in each datum holding the numeric series value (the area).
xKeyrequiredstringKey in each datum holding the x-axis category label.
configrequiredChartConfigRecharts/shadcn chart config keyed by series — supplies label and colour.
classNamestring | undefined

On this page