TableBlock
Overview
TableBlock
represents a block that displays content in a tabular format. It supports configurable rows, cells, and styling options, making it suitable for structured data presentation.
Attributes
id
type: string
A unique identifier for the table block.
type
type: literal = 'table'
Discriminant for this block type.
header
type: object (optional)
The header content for the table, with the following structure:
text
: string (optional)format
: literal = 'markdown' | 'html' (optional)
headerPosition
type: ContentDirectionOptions (optional)
Specifies the alignment of the table header content.
paddingTop
type: PaddingOptions (optional)
Specifies the top padding for the table block.
paddingBottom
type: PaddingOptions (optional)
Specifies the bottom padding for the table block.
borderColor
type: BorderColorOptions (optional)
Defines the color of the table's border.
fullBleed
type: boolean (optional)
Indicates whether the table block should span the full width of its container.
ariaLabel
type: string (optional)
Accessibility label for the table block.
rows
type: TableRow[] (optional)
An array of table rows, each containing cells and additional metadata.