Skip to main content

Table Components

Table

A Table is a CMS driven component that displays tabular data comprised of rows and cells.

FieldDescriptionValues
headerTable title, represented as a <caption> elementString
fullBleedBoolean to determine whether the table spans full width or has padding
  • true
  • false
paddingTopControls spacing above the table
  • regular
  • extra
paddingBottomControls spacing below the table
  • regular
  • extra
headerPositionAlignment of the header
  • start
  • center
  • end
borderColorThe border color for the table
  • border
  • background
  • primary
  • secondary
  • accent
  • muted
  • destructive
rowsArray of table rowsArray

Table

Header 1

Header 2

Header 3

Header 4

Header 5

Row 1 Col 1

Row 1 Col 2

Row 1 Col 3

Row 1 Col 4

Row 1 Col 5

Row 2 Col 1

Row 2 Col 2

Row 2 Col 3

Row 2 Col 4

Row 2 Col 5

Row 3 Col 1

Row 3 Col 2

Row 3 Col 3

Row 3 Col 4

Row 3 Col 5

Row 4 Col 1

Row 4 Col 2

Row 4 Col 3

Row 4 Col 4

Row 4 Col 5


Table Row

A TableRow is comprised of table cells.

FieldDescriptionValues
cellsAn array of table cellsArray
isHeaderAn boolean to determine if the row serves as a header for the table columns
  • true
  • false

Table Cell

A Table Cell is a subcomponent of a TableRow.

FieldDescriptionValues
textThe text content of the cell in markdownString
columnSpanDetermines how many columns the cell spans. The sum of all colSpan values in a row must equal the total number of columns in the table.Integer
backgroundColorBackground color of the cell
  • background
  • primary
  • secondary
  • accent
  • destructive
  • muted
textColorText color of the cell
  • foreground
  • primary foreground
  • secondary foreground
  • accent foreground
  • muted foreground
  • destructive foreground
positionText alignment of the cell content
  • start
  • center
  • end

Example Cell


Customization

The approach for customization will vary depending on if the customization is intended to be global for all consumers of the UI component or if it is only an override for a particular instance.

  • If the customization is necessary for all use cases, update the component source code in the UI library package directly.
  • Otherwise, pass className overrides. Class overrides can be applied to all sub-components.