# Adaptive Card sample: Table

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

Demonstrates the Table element — firstRowAsHeaders, 3 columns with relative widths (1/1/3), roundedCorners, and TextBlock cells.

## Elements

- `Table` — firstRowAsHeaders: true, roundedCorners: true
- `TableRow` — header row (weight: Bolder)
- `TableRow` — data rows × 2
- `TableCell` — items: [TextBlock]

## Card JSON

```json
{
  "type": "AdaptiveCard",
  "version": "1.5",
  "body": [
    {
      "type": "Table",
      "roundedCorners": true,
      "firstRowAsHeaders": true,
      "columns": [
        {
          "width": 1
        },
        {
          "width": 1
        },
        {
          "width": 3
        }
      ],
      "rows": [
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Name",
                  "wrap": true,
                  "weight": "Bolder"
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Type",
                  "wrap": true,
                  "weight": "Bolder"
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Description",
                  "wrap": true,
                  "weight": "Bolder"
                }
              ]
            }
          ]
        },
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "columns",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "ColumnDefinition[]",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Defines the table's columns (number of columns, and column sizes).",
                  "wrap": true
                }
              ]
            }
          ]
        },
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "rows",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "TableRow[]",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Defines the rows of the Table, each being a collection of cells. Rows are not required, which allows empty Tables to be generated via templating without breaking the rendering of the whole card.",
                  "wrap": true
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
```
