component MetricCard { props { label = "Metric" value = "0" description = "" icon = "" prefix = "" suffix = "" trend = "" trendLabel = "" trendDirection = "neutral" href = "" actionLabel = "" size = "default" color = "primary" variant = "default" align = "left" class = "" } view {

{label}

{prefix}{value}{suffix}

{#if icon} {/if}
{#if description}

{description}

{/if} {#if trend || trendLabel}
{#if trendDirection === "up" || trendDirection === "positive"} {:else if trendDirection === "down" || trendDirection === "negative"} {:else} {/if} {trend} {#if trendLabel} {trendLabel} {/if}
{/if} {#if href} {/if}
} }