# SbStatCard A card component for displaying key metrics and statistics with optional icon, prefix/suffix, trend, description, and actions. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Label | string | - | Label describing the statistic | | Value | string | - | The statistic value (displayed as-is) | | Prefix | string? | null | Text before the value (e.g. "$") | | Suffix | string? | null | Text after the value (e.g. "%", "min") | | Trend | double? | null | Trend percentage (positive or negative) | | TrendLabel | string? | null | Trend description (e.g. "vs last month") | | ShowTrend | bool | true | Whether to show trend when Trend is set | | Description | string? | null | Additional description text below trend | | Class | string? | null | Additional CSS classes | ## Slots (RenderFragments) | Slot | Type | Description | |------|------|-------------| | Icon | RenderFragment? | Icon content (e.g. ``) | | Actions | RenderFragment? | Action buttons or links (e.g. "View All" button) | ## CSS Classes - `sb-stat-card` - Base class - `sb-stat-card__icon` - Icon container - `sb-stat-card__content` - Content area - `sb-stat-card__label` - Label text - `sb-stat-card__value` - Value display - `sb-stat-card__prefix` - Value prefix - `sb-stat-card__suffix` - Value suffix - `sb-stat-card__trend` - Trend row - `sb-stat-card__trend--positive` - Positive trend (e.g. arrow up) - `sb-stat-card__trend--negative` - Negative trend (e.g. arrow down) - `sb-stat-card__trend-icon` - Trend arrow - `sb-stat-card__trend-value` - Trend percentage - `sb-stat-card__trend-label` - Trend label text - `sb-stat-card__description` - Description text - `sb-stat-card__actions` - Actions area ## Examples ### Basic Usage ```razor ``` ### With Icons ```razor ``` ### With Trends ```razor ``` ### With Descriptions ```razor ``` ### With Actions ```razor View All ``` ### Without Trend Display ```razor ```