Skip to main content
Version: 57.2.0

Table

In this case, Table is a pattern, not a component. Build a table by sorting the table component items into rows. Each row should have an alternating color.

Package: @terreno/ui
Categories: Pattern
Props interface: TableProps
Story source: demo/stories/Table.stories.tsx

Live demo

Props

PropTypeRequiredDescription
childrenunionYesMust be instances of TableHeader, TableRow, and/or TableFooter components.
columnsarrayYesThe size of the table title. Can be one of "sm", "md", "lg", or "xl".
alternateRowBackgroundbooleanIf true, alternate rows will have a light gray background. Defaults to true.
borderStyleunionSpecify a border width for Table: "sm" is 1px.
extraControlsReactElementExtra controls to render below the table next to pagination
maxHeightDimensionValueUse numbers for pixels:
morebooleanIf true, the table will render a next page button. Defaults to true.
pagenumberSet the page outside of the Table
setPagereflectionSet the page outside of the Table
sortColumnSortInterfaceControl sort outside of the Table
stickyHeaderbooleanIf true, the header will stick to the top of the table when scrolling. Defaults to true.
totalPagesnumberSet the total number of pages of the Table