# Adaptive Card sample: CompoundButton

- id: `compound-button`
- Adaptive Card schema version: 1.5

Four CompoundButtons in a Layout.Flow grid — with icon, description, badge, and height: stretch.

## Elements

- `CompoundButton` — icon.name: TextBulletList, height: stretch
- `CompoundButton` — icon.name: Lightbulb
- `CompoundButton` — badge: "New", no icon
- `CompoundButton` — icon.name: Calendar
- `Layout.Flow` — itemWidth: 200px, itemFit: Fill, minItemWidth: 0px

## Card JSON

```json
{
  "type": "AdaptiveCard",
  "version": "1.5",
  "layouts": [
    {
      "type": "Layout.Flow",
      "itemWidth": "200px",
      "itemFit": "Fill",
      "minItemWidth": "0px"
    }
  ],
  "body": [
    {
      "type": "CompoundButton",
      "title": "Summarize",
      "height": "stretch",
      "icon": {
        "name": "TextBulletList"
      },
      "description": "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt..."
    },
    {
      "type": "CompoundButton",
      "title": "Insights",
      "description": "Who's reviewed my latest document?",
      "height": "stretch",
      "icon": {
        "name": "Lightbulb"
      }
    },
    {
      "type": "CompoundButton",
      "title": "Get key info",
      "description": "List key points from my latest document",
      "badge": "New",
      "height": "stretch"
    },
    {
      "type": "CompoundButton",
      "title": "Share meeting notes",
      "description": "Draft an email with notes and action items from my latest meeting",
      "height": "stretch",
      "icon": {
        "name": "Calendar"
      }
    }
  ]
}
```
