# Adaptive Card sample: ProgressBar

- id: `progressbar`
- Adaptive Card schema version: 1.5

Demonstrates the ProgressBar element — various values (0%, 33%, 67%, 100%) with labels and colors (default, accent, good, warning, attention).

## Elements

- `ProgressBar` — value: 0 — label
- `ProgressBar` — value: 33 — color: accent
- `ProgressBar` — value: 67 — color: warning
- `ProgressBar` — value: 100 — color: good
- `ProgressBar` — value: 45 — color: attention

## Card JSON

```json
{
  "type": "AdaptiveCard",
  "version": "1.5",
  "body": [
    {
      "type": "TextBlock",
      "text": "Progress Bars",
      "style": "heading",
      "wrap": true
    },
    {
      "type": "TextBlock",
      "text": "Default",
      "wrap": true,
      "spacing": "Medium",
      "size": "Small",
      "color": "Accent"
    },
    {
      "type": "ProgressBar",
      "label": "Not started",
      "value": 0
    },
    {
      "type": "TextBlock",
      "text": "Accent",
      "wrap": true,
      "spacing": "Medium",
      "size": "Small",
      "color": "Accent"
    },
    {
      "type": "ProgressBar",
      "label": "In progress — 33 %",
      "value": 33,
      "color": "Accent"
    },
    {
      "type": "TextBlock",
      "text": "Warning",
      "wrap": true,
      "spacing": "Medium",
      "size": "Small",
      "color": "Warning"
    },
    {
      "type": "ProgressBar",
      "label": "Pending review — 67 %",
      "value": 67,
      "color": "Warning"
    },
    {
      "type": "TextBlock",
      "text": "Good",
      "wrap": true,
      "spacing": "Medium",
      "size": "Small",
      "color": "Good"
    },
    {
      "type": "ProgressBar",
      "label": "Completed — 100 %",
      "value": 100,
      "color": "Good"
    },
    {
      "type": "TextBlock",
      "text": "Attention",
      "wrap": true,
      "spacing": "Medium",
      "size": "Small",
      "color": "Attention"
    },
    {
      "type": "ProgressBar",
      "label": "Blocked — 45 %",
      "value": 45,
      "color": "Attention"
    }
  ]
}
```
