# SbMetric
A component for displaying a single metric value with optional label, trend indicator, and formatting.
## Parameters
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| Value | string | - | The metric value to display |
| Label | string? | null | Label text for the metric |
| Trend | decimal? | null | Trend percentage (positive/negative) |
| TrendLabel | string? | null | Custom trend label |
| Format | MetricFormat | Default | Value format (Number, Currency, Percentage) |
| Size | SbSize | Medium | Size variant |
| Color | SbColor? | null | Accent color |
| Class | string? | null | Additional CSS classes |
## Templates / Slots (RenderFragments)
| Slot | Type | Description |
|------|------|-------------|
| IconTemplate | RenderFragment | Custom icon content |
| ValueTemplate | RenderFragment | Custom value display |
## CSS Classes
- `sb-metric` - Base class
- `sb-metric--sm` - Small size
- `sb-metric--md` - Medium size
- `sb-metric--lg` - Large size
- `sb-metric__value` - Value display
- `sb-metric__label` - Label text
- `sb-metric__trend` - Trend indicator
- `sb-metric__trend--up` - Positive trend
- `sb-metric__trend--down` - Negative trend
- `sb-metric__icon` - Icon container
## Examples
### Basic Usage
```razor
```
### With Trend
```razor
```
### Negative Trend
```razor
```
### With Icon
```razor
```
### Large Size
```razor
```
### In Dashboard Layout
```razor
```