EEnterUI
DocsComponentsThemesDonation
Get Started
  • Component onboarding
    • Card
    • MetricCard
    • ChartCard
    • Badge
    • StatusIndicator
    • Rating
EnterUIDocsFoundationsSurfaces and IndicatorsChartCard
FoundationsUpdated 6 May 2026

ChartCard

Card wrapper for chart primitives with title, description, optional actions, and a body slot.

ChartCard frames a chart primitive (Sparkline, BarChart, DonutChart, etc.) with a consistent header and body layout, so dashboards stay visually aligned without bespoke wrappers.

#Default usage

Deployments card

Wrap any chart primitive in a labelled card.

DeploymentsLast 7 days
Code
<ChartCard
  description="Last 7 days"
  title="Deployments"
>
  <BarChart
    data={[
      { value: 4 },
      { value: 8 },
      { value: 6 },
      { value: 12 },
      { value: 9 },
      { value: 14 },
      { value: 11 },
    ]}
    label="Deployments"
  />
</ChartCard>

#Import

Code
import { ChartCard } from "@froggdesign/enter-ui-react";

#Accessibility

ChartCard renders a div with a header (title, description) and a body slot. Screen-reader names come from the chart primitive inside; ChartCard adds visual context only.

#API

  • title, description: ReactNode header copy.
  • actions: ReactNode rendered on the right of the header.
  • Extends div props.

#Styling

Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousMetricCard
NextBadge

On this page

  1. Default usage
  2. Import
  3. Accessibility
  4. API
  5. Styling