# `PgFlowDashboard.Components.MetricCard`
[🔗](https://github.com/agoodway/pgflow/blob/v0.1.0/lib/pgflow_dashboard/components/metric_card.ex#L1)

Dashboard metric card component.

# `metric_card`

Renders a metric card.

## Attributes

  * `:title` - The metric title
  * `:value` - The metric value
  * `:subtitle` - Optional subtitle text
  * `:trend` - Optional trend indicator (:up, :down, :neutral)
  * `:trend_value` - Optional trend percentage/value

## Attributes

* `title` (`:string`) (required)
* `value` (`:any`) (required)
* `subtitle` (`:string`) - Defaults to `nil`.
* `trend` (`:atom`) - Defaults to `nil`.
* `trend_value` (`:string`) - Defaults to `nil`.
* `class` (`:string`) - Defaults to `nil`.
* `href` (`:string`) - Defaults to `nil`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
