# `LedgerUI.Components.MiniCard`
[🔗](https://github.com/devaction-labs/ledger_ui/blob/v0.2.0/lib/ledger_ui/components/mini_card.ex#L1)

The canvas's mini card: a small card for a shortcut (an icon box over a bold label) or for a
short figure (a faint label over a mono value).

    <.mini_card icon="huge-invoice-01" tone="accent" label="Novo pedido" navigate={~p"/pedidos/novo"} />
    <.mini_card label="A receber" value="R$ 41,2 mil" />

With `href`, `navigate` or `patch` the card is a link and ends in an arrow. The inner block
goes under the label. `surface="card"` draws it as a `lu-cv` card with a rounded icon avatar
(a row of shortcuts) instead of the default panel.

# `mini_card`

## Attributes

* `label` (`:string`) (required)
* `value` (`:string`) - A short figure: the label becomes a caption over it. Defaults to `nil`.
* `icon` (`:string`) - Defaults to `nil`.
* `tone` (`:string`) - Defaults to `"neutral"`. Must be one of `"accent"`, `"error"`, `"info"`, `"neutral"`, `"success"`, or `"warning"`.
* `surface` (`:string`) - Defaults to `"panel"`. Must be one of `"panel"`, or `"card"`.
* `style` (`:string`) - Defaults to `nil`.
* `class` (`:any`) - Defaults to `nil`.
* Global attributes are accepted. Supports all globals plus: `["href", "navigate", "patch", "method"]`.
## Slots

* `inner_block` - Extra content under the label.

---

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