# `PhoenixFilament.Widget.StatsOverview`
[🔗](https://github.com/franciscpd/phoenix-filament/blob/main/lib/phoenix_filament/panel/widget/stats_overview.ex#L1)

A widget that displays statistics as cards.

## Usage

    defmodule MyApp.Admin.StatsWidget do
      use PhoenixFilament.Widget.StatsOverview

      @impl true
      def stats(_assigns) do
        [
          stat("Posts", Repo.aggregate(Post, :count),
            icon: "hero-document-text",
            color: :success,
            description: "12 new today")
        ]
      end
    end

# `stats`

```elixir
@callback stats(assigns :: map()) :: [map()]
```

# `render`

# `sparkline`

## Attributes

* `data` (`:list`) (required)

# `stat`

---

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