---
title: Tables
description: JSX style props for styling table elements.
---
## Border Spacing
Control the border-spacing property of a table.
```jsx
| Cell 1 |
Cell 2 |
```
| Prop | CSS Property | Token Category |
| --------------- | ---------------- | -------------- |
| `borderSpacing` | `border-spacing` | `spacing` |
## Border Spacing X
Use the `borderSpacingX` prop to set the horizontal border-spacing property of a
table.
```jsx
| Cell 1 |
Cell 2 |
```
| Prop | CSS Property | Token Category |
| ---------------- | ---------------- | -------------- |
| `borderSpacingX` | `border-spacing` | `spacing` |
## Border Spacing Y
Use the `borderSpacingY` prop to set the vertical border-spacing property of a
table.
```jsx
| Cell 1 |
Cell 2 |
```
| Prop | CSS Property | Token Category |
| ---------------- | ---------------- | -------------- |
| `borderSpacingY` | `border-spacing` | `spacing` |
## Caption Side
Use the `captionSide` prop to set the side of the caption of a table.
```jsx
This is a caption
| Cell 1 |
Cell 2 |
```
| Prop | CSS Property | Token Category |
| ------------- | -------------- | -------------- |
| `captionSide` | `caption-side` | - |