TableOptions
Interface TableOptions
interface TableOptionsProperties
background
RGBTop-level container style.
border
{ color: RGB; width: number }Type Declaration
color
RGBwidth
numberborderCollapse
"separate" | "collapse"Border model for cell borders. "separate" preserves each cell's own
border. "collapse" draws shared cell boundaries once, similar to CSS
border-collapse: collapse.
borderRadius
numberborderSides
BorderSidescellPadding
EdgesInputVertical padding inside each cell row (top + bottom only). Defaults to
{ top: 6, bottom: 6 }. Horizontal spacing is handled by columnGap
and the table-level padding; cells themselves do not add horizontal
insets — that keeps column widths predictable across header / body /
footer rows.
columnGap
numberHorizontal gap between columns. Defaults to 12.
columns
ColumnSpec[]Column definitions. Must match the length of every row / header / footer.
footer
TableCellInput[]Optional footer row — drawn last, with a stronger divider above.
footerDivider
TableDividerDivider drawn above the footer. Defaults to rowDivider.
header
TableCellInput[]Optional header row — drawn first, with a stronger divider beneath by default.
headerDivider
TableDividerDivider drawn under the header. Defaults to rowDivider if set, else nothing.
margin
EdgesInputpadding
EdgesInputPadding applied to the whole table — wraps every row, useful when you
want to inset table content from an outer border / background.
rowDivider
TableDividerDivider drawn between body rows. Omit to skip.
rows
TableCellInput[][]Body rows. Cells may span columns; each row must cover columns.length columns.
width
numberTotal table width including any padding. If omitted, fixed columns sum + any fr columns get 0 width.