Skip to catalog content
Mado UI Open-code components

Source-owned · zero runtime dependencies

block · metric-card

Metric card and grid

A responsive description-list grid for neutral metric cards and their label-value context.

Install with npx @madojs/ui@latest add metric-card.

Metric card and grid

Open invoices
42 Three are due within the next seven days.
Monthly revenue
$24,780 Increased 12.4% from last month.
Collection rate
97.4% Unchanged across the current month.
Average revenue per customer for the current billing month
$1,923 Calculated from customers with recorded activity.

Composition

  • Use a description list as the metric grid. Each card contains one dt label and one dd value with optional detail inside the value.

Public API

class mado-ui-metric-grid / card / label / value / detail
Responsive metric list and value presentation.
element data
Optional machine-readable value inside the visible dd.

Detected public classes

  • .mado-ui-metric-card
  • .mado-ui-metric-card-detail
  • .mado-ui-metric-card-label
  • .mado-ui-metric-card-value
  • .mado-ui-metric-grid

Detected public CSS properties

  • --mado-ui-color-border
  • --mado-ui-color-surface
  • --mado-ui-color-text
  • --mado-ui-color-text-muted
  • --mado-ui-metric-card-background
  • --mado-ui-metric-card-border
  • --mado-ui-metric-card-color
  • --mado-ui-metric-card-detail-color
  • --mado-ui-metric-card-gap
  • --mado-ui-metric-card-label-color
  • --mado-ui-metric-card-padding
  • --mado-ui-metric-card-radius
  • --mado-ui-metric-card-shadow
  • --mado-ui-metric-card-value-size
  • --mado-ui-metric-grid-align
  • --mado-ui-metric-grid-gap
  • --mado-ui-metric-grid-min
  • --mado-ui-radius-md
  • --mado-ui-space-1
  • --mado-ui-space-2
  • --mado-ui-space-4
  • --mado-ui-space-5

Accessibility contract

  • The description-list relationship keeps every metric label associated with its value.
  • Trend direction and units must be stated in text; color and arrow shape are not sufficient.

Keyboard

  • The recipe adds no composite keyboard model; native interactive descendants keep their browser-defined keys and Tab order.

Focus

  • Focus remains on native links, buttons or controls. Presentational wrappers never become focusable.

Fallback

  • Without the copied stylesheet, the semantic source HTML remains readable and operable.

Installation graph

Direct dependencies

Resolved install order

Copied source

The CLI resolves each registry source path into the configured project target. Links below point to the exact catalog build tag.