# Adaptive Card sample: Icon

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

Demonstrates Icon element — all 8 sizes (xxSmall→xxLarge), Regular vs Filled style, and standard font colors (Default / Accent / Good / Warning / Attention).

## Elements

- `Icon` — size: xxSmall / xSmall / Small / Standard / Medium / Large / xLarge / xxLarge
- `Icon` — style: Regular vs Filled
- `Icon` — color: Default / Accent / Good / Warning / Attention (Filled)
- `Layout.Flow` — used for the sizes row

## Card JSON

```json
{
  "type": "AdaptiveCard",
  "version": "1.5",
  "body": [
    {
      "type": "TextBlock",
      "text": "Sizes",
      "style": "heading",
      "wrap": true
    },
    {
      "type": "Container",
      "showBorder": false,
      "layouts": [
        {
          "type": "Layout.Flow",
          "itemWidth": "60px"
        }
      ],
      "items": [
        {
          "type": "Container",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "xxSmall"
            },
            {
              "type": "TextBlock",
              "text": "xxSmall",
              "size": "Small",
              "wrap": true
            }
          ]
        },
        {
          "type": "Container",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "xSmall"
            },
            {
              "type": "TextBlock",
              "text": "xSmall",
              "size": "Small",
              "wrap": true
            }
          ]
        },
        {
          "type": "Container",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "Small"
            },
            {
              "type": "TextBlock",
              "text": "Small",
              "size": "Small",
              "wrap": true
            }
          ]
        },
        {
          "type": "Container",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "Standard"
            },
            {
              "type": "TextBlock",
              "text": "Standard",
              "size": "Small",
              "wrap": true
            }
          ]
        },
        {
          "type": "Container",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "Medium"
            },
            {
              "type": "TextBlock",
              "text": "Medium",
              "size": "Small",
              "wrap": true
            }
          ]
        },
        {
          "type": "Container",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "Large"
            },
            {
              "type": "TextBlock",
              "text": "Large",
              "size": "Small",
              "wrap": true
            }
          ]
        },
        {
          "type": "Container",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "xLarge"
            },
            {
              "type": "TextBlock",
              "text": "xLarge",
              "size": "Small",
              "wrap": true
            }
          ]
        },
        {
          "type": "Container",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "xxLarge"
            },
            {
              "type": "TextBlock",
              "text": "xxLarge",
              "size": "Small",
              "wrap": true
            }
          ]
        }
      ]
    },
    {
      "type": "TextBlock",
      "text": "Style: Regular vs Filled",
      "style": "heading",
      "wrap": true,
      "spacing": "Large"
    },
    {
      "type": "ColumnSet",
      "columns": [
        {
          "type": "Column",
          "width": "auto",
          "items": [
            {
              "type": "Icon",
              "name": "ImageSparkle",
              "size": "Large",
              "style": "Regular"
            },
            {
              "type": "TextBlock",
              "text": "Regular",
              "wrap": true
            }
          ]
        },
        {
          "type": "Column",
          "width": "auto",
          "items": [
            {
              "type": "Icon",
              "name": "ImageSparkle",
              "size": "Large",
              "style": "Filled"
            },
            {
              "type": "TextBlock",
              "text": "Filled",
              "wrap": true
            }
          ]
        }
      ]
    },
    {
      "type": "TextBlock",
      "text": "Colors (Filled)",
      "style": "heading",
      "wrap": true,
      "spacing": "Large"
    },
    {
      "type": "ColumnSet",
      "columns": [
        {
          "type": "Column",
          "width": "auto",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "Large",
              "style": "Filled"
            },
            {
              "type": "TextBlock",
              "text": "Default",
              "wrap": true
            }
          ]
        },
        {
          "type": "Column",
          "width": "auto",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "Large",
              "style": "Filled",
              "color": "Accent"
            },
            {
              "type": "TextBlock",
              "text": "Accent",
              "wrap": true,
              "color": "Accent"
            }
          ]
        },
        {
          "type": "Column",
          "width": "auto",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "Large",
              "style": "Filled",
              "color": "Good"
            },
            {
              "type": "TextBlock",
              "text": "Good",
              "wrap": true,
              "color": "Good"
            }
          ]
        },
        {
          "type": "Column",
          "width": "auto",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "Large",
              "style": "Filled",
              "color": "Warning"
            },
            {
              "type": "TextBlock",
              "text": "Warning",
              "wrap": true,
              "color": "Warning"
            }
          ]
        },
        {
          "type": "Column",
          "width": "auto",
          "items": [
            {
              "type": "Icon",
              "name": "Calendar",
              "size": "Large",
              "style": "Filled",
              "color": "Attention"
            },
            {
              "type": "TextBlock",
              "text": "Attention",
              "wrap": true,
              "color": "Attention"
            }
          ]
        }
      ]
    }
  ]
}
```
