---
title: "Table, MailKaro Docs"
description: "Table in MailKaro: a data table with editable cells. For React, Vue, Angular and plain JavaScript."
---

# Table

Content blocks

# Table

A data table with editable cells.

## Options

- Add / remove rows and columns
- Merge and split cells
- Header row styling
- Cell padding, borders, alignment

## Cell data

A table keeps its cells in `values.rows`, a grid of rows. A cell is a plain string, or an object with `text`, `colspan` and `rowspan` when it is merged. A cell covered by a merged neighbour keeps its place in the grid and is skipped on export.

json

```
{
 "type": "table",
 "values": {
 "header_row": true,
 "rows": [
 ["Plan", "Price"],
 ["Pro", "{{pro_price}}"],
 [{ "text": "Prices include tax", "colspan": 2 }, ""]
 ]
 }
}
```

Cell text is plain text: HTML typed into a cell is escaped and shows as text. Merge tags in cells are filled in.

## Defaults

- The first row is a header (`header_row` is true), dark `#14213d` with white bold text.
- `footer_row` styles the last row the same way. It is off by default.
- Borders are 1px solid `#e6ecea`, cell padding is 10px and text is 14px.
- `striped` shades every second body row with `#f4f8f7`.
- The table is 100% wide.

Source: https://docs.mailkaro.com/block-table
