Skip to main content

1. Install dependencies

Install the EmailUX Email package locally and a few components.

2. Usage

Rows and columns

Inherit wrapper styles via context

padding, border, and borderColor from Table flow to Table.Row and Table.Col via context.

Override per row or col

Table.Row can override context for its children; Table.Col can override for itself.

Using colSpan and width

Table.Col extends native td props, so attributes like colSpan work as expected.

Alignment, vertical alignment, and background

Props

Table

Notes:
  • When spacing is provided, an outer wrapper table is used to apply spacing.
  • padding, border, and borderColor are provided to descendants via context and can be overridden by Table.Row or Table.Col.
  • Borders are applied per cell with side-specific rules to avoid double borders (top/left on first row/column; right/bottom on all cells).

Table.Row

Table.Col

Additional:
  • Table.Col extends native td props, so attributes like colSpan and rowSpan are supported.