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
spacingis provided, an outer wrapper table is used to apply spacing. padding,border, andborderColorare provided to descendants via context and can be overridden byTable.RoworTable.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.Colextends nativetdprops, so attributes likecolSpanandrowSpanare supported.