---
title: "Table"
subtitle: "<Table> and Markdown tables: column widths, horizontal scrolling, sticky header and first column, search and pagination."
---

Wraps a Markdown table (or an HTML table) to control column widths, minimum width, and a sticky header / first column. Tables work without it too: Markdown tables estimate column widths from their content and scroll horizontally when they don't fit.

## Column widths

`widths` lists one width per column, separated by spaces: numbers are px, and `12rem`, `30%` or `auto` work too; `*` leaves a column unspecified. Columns not listed share the remaining width. `layout="equal"` makes all columns the same width; `layout="content"` lets the browser lay them out by content.

```mdx
<Table widths="160px * 80px 80px">

| Status | Meaning | Cancelable | Promotable |
|---|---|---|---|
| queued | Waiting | Yes | No |
| building | Building | No | No |
| ready | Succeeded | No | Yes |
| failed | Failed | No | No |
| canceled | Canceled | No | No |

</Table>
```

<Table widths="160px * 80px 80px">

| Status | Meaning | Cancelable | Promotable |
|---|---|---|---|
| queued | Waiting | Yes | No |
| building | Building | No | No |
| ready | Succeeded | No | Yes |
| failed | Failed | No | No |
| canceled | Canceled | No | No |

</Table>

## Skins

`skin` gives a table another look; all of them work in light and dark mode. Without it, tables are plain: no frame and no background, just row lines. You can also choose one in the visual editor's table settings, where hovering a skin tries it on the table in the page.

```mdx
<Table skin="framed">

| Parameter | Type | Default |
|---|---|---|
| `region` | string | `ap-sh` |

</Table>
```

<Tabs>
<Tab title="Framed">

<Table skin="framed">

| Parameter | Type | Default |
|---|---|---|
| `region` | string | `ap-sh` |
| `timeout` | number | `30` |
| `retries` | number | `3` |

</Table>

</Tab>
<Tab title="Striped">

<Table skin="striped">

| Parameter | Type | Default |
|---|---|---|
| `region` | string | `ap-sh` |
| `timeout` | number | `30` |
| `retries` | number | `3` |

</Table>

</Tab>
<Tab title="Grid">

<Table skin="bordered">

| Parameter | Type | Default |
|---|---|---|
| `region` | string | `ap-sh` |
| `timeout` | number | `30` |
| `retries` | number | `3` |

</Table>

</Tab>
<Tab title="Card">

<Table skin="card">

| Parameter | Type | Default |
|---|---|---|
| `region` | string | `ap-sh` |
| `timeout` | number | `30` |
| `retries` | number | `3` |

</Table>

</Tab>
<Tab title="Minimal">

<Table skin="minimal">

| Parameter | Type | Default |
|---|---|---|
| `region` | string | `ap-sh` |
| `timeout` | number | `30` |
| `retries` | number | `3` |

</Table>

</Tab>
<Tab title="Three rules">

<Table skin="academic">

| Parameter | Type | Default |
|---|---|---|
| `region` | string | `ap-sh` |
| `timeout` | number | `30` |
| `retries` | number | `3` |

</Table>

</Tab>
<Tab title="Accent">

<Table skin="accent">

| Parameter | Type | Default |
|---|---|---|
| `region` | string | `ap-sh` |
| `timeout` | number | `30` |
| `retries` | number | `3` |

</Table>

</Tab>
<Tab title="Inverted header">

<Table skin="contrast">

| Parameter | Type | Default |
|---|---|---|
| `region` | string | `ap-sh` |
| `timeout` | number | `30` |
| `retries` | number | `3` |

</Table>

</Tab>
<Tab title="Soft">

<Table skin="soft">

| Parameter | Type | Default |
|---|---|---|
| `region` | string | `ap-sh` |
| `timeout` | number | `30` |
| `retries` | number | `3` |

</Table>

</Tab>
</Tabs>

## Tables wider than the page

`minWidth` makes the table wider than the page column so it scrolls horizontally; the side that can still scroll shows a shadow.

```mdx
<Table minWidth="960px">

| Parameter | Type | Required | Default | Range | Since | Description |
|---|---|:---:|---|---|---|---|
| `timeout` | number | No | `30` | 1–600 | v1.2 | Per-request timeout in seconds; retried automatically on timeout |
| `region` | string | Yes | – | `cn` / `us` / `eu` | v1.0 | Data region; cannot be changed after creation |
| `retries` | number | No | `3` | 0–10 | v1.4 | Maximum retries after a failure, with exponential backoff |

</Table>
```

<Table minWidth="960px">

| Parameter | Type | Required | Default | Range | Since | Description |
|---|---|:---:|---|---|---|---|
| `timeout` | number | No | `30` | 1–600 | v1.2 | Per-request timeout in seconds; retried automatically on timeout |
| `region` | string | Yes | – | `cn` / `us` / `eu` | v1.0 | Data region; cannot be changed after creation |
| `retries` | number | No | `3` | 0–10 | v1.4 | Maximum retries after a failure, with exponential backoff |

</Table>

## Sticky header and first column

```mdx
<Table stickyHeader stickyFirstColumn maxHeight="240px">

| Status | Meaning | Cancelable | Promotable |
|---|---|---|---|
| queued | Waiting | Yes | No |
| building | Building | No | No |
| ready | Succeeded | No | Yes |
| failed | Failed | No | No |
| canceled | Canceled | No | No |

</Table>
```

<Table stickyHeader stickyFirstColumn maxHeight="240px">

| Status | Meaning | Cancelable | Promotable |
|---|---|---|---|
| queued | Waiting | Yes | No |
| building | Building | No | No |
| ready | Succeeded | No | Yes |
| failed | Failed | No | No |
| canceled | Canceled | No | No |

</Table>

## Search and pagination

`searchable` adds a search box above the table that filters rows as you type (case-insensitive); `paginate` splits rows into pages of `pageSize`, and `expandable` swaps the page controls for a “Show all / Show fewer” toggle. Filtering happens before pagination.

```mdx
<Table searchable paginate pageSize={4} placeholder="Search regions">

| Region | Location |
|---|---|
| cn-north | North China |
| cn-east | East China |
| cn-south | South China |
| ap-hk | Hong Kong |
| ap-sg | Singapore |
| us-west | US West |
| us-east | US East |
| eu-central | Frankfurt |

</Table>
```

<Table searchable paginate pageSize={4} placeholder="Search regions">

| Region | Location |
|---|---|
| cn-north | North China |
| cn-east | East China |
| cn-south | South China |
| ap-hk | Hong Kong |
| ap-sg | Singapore |
| us-west | US West |
| us-east | US East |
| eu-central | Frankfurt |

</Table>

<ParamField path="widths" type="string">Column widths separated by spaces, e.g. `160px 30% auto *`. Numbers are px, `*` leaves a column unspecified; once set, unlisted columns share the remaining width.</ParamField>
<ParamField path="layout" type="smart | equal | content" default="smart">`smart` estimates from content (same content, same width); `equal` gives equal widths; `content` uses the browser's automatic layout.</ParamField>
<ParamField path="minWidth" type="string">Minimum table width, e.g. `960px`. Wider than the page column → horizontal scrolling (also accepts `min-width`).</ParamField>
<ParamField path="stickyHeader" type="boolean" default="false">Keep the header row visible while scrolling vertically (also accepts `sticky`).</ParamField>
<ParamField path="stickyFirstColumn" type="boolean" default="false">Keep the first column visible while scrolling horizontally (also accepts `sticky-first`).</ParamField>
<ParamField path="maxHeight" type="string">Scroll viewport height when the header is sticky, default `min(70vh, 600px)`.</ParamField>
<ParamField path="searchable" type="boolean" default="false">Show a search box above the table that filters rows.</ParamField>
<ParamField path="placeholder" type="string" default="Search...">Search box placeholder.</ParamField>
<ParamField path="paginate" type="boolean" default="false">Split rows into pages with previous / next controls.</ParamField>
<ParamField path="pageSize" type="number" default="10">Rows per page.</ParamField>
<ParamField path="expandable" type="boolean" default="false">With `paginate`: a “Show all / Show fewer” toggle instead of page controls.</ParamField>
<ParamField path="skin" type="default | framed | striped | bordered | card | minimal | academic | accent | contrast | soft" default="default">Look: `framed` frame with a tinted header, `striped` zebra rows, `bordered` full grid, `card` raised card, `minimal` only the header rule, `academic` three rules, `accent` header in the brand color, `contrast` inverted header, `soft` rows as rounded bars.</ParamField>

<Note>`<StickyTable>`, `<SearchableTable>`, `<StickySearchableTable>`, `<PaginatedTable>` and `<PaginatedSearchableTable>` all work and equal `<Table>` with the matching switches on; the HTML form `<table sticky searchable paginate pageSize={6} expandable>` works too. For merged cells, see [Markdown syntax › Merged cells](../writing/markdown.mdx#merged-cells).</Note>
