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.
Summary
Functions
Attributes
label(:string) (required)value(:string) - A short figure: the label becomes a caption over it. Defaults tonil.icon(:string) - Defaults tonil.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 tonil.class(:any) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["href", "navigate", "patch", "method"].
Slots
inner_block- Extra content under the label.