TableFooter

The footer section of a Table. Renders <tfoot> and provides TableSectionContext = 'footer', which makes descendant TableCells render as <td>.

The footer section of a Table. Renders <tfoot> and provides TableSectionContext = 'footer', which makes descendant TableCells render as <td>. The natural home for totals rows and TablePagination.

<Table>
  <TableFooter>
    <TableRow>
      <TableCell colSpan={3}>Total</TableCell>
    </TableRow>
  </TableFooter>
</Table>

Demos

For usage examples, visit the component demo page: Table

Import

import { TableFooter } from '@soroush.tech/design-system/Table'

Props

PropTypeDefaultDescription
colorkeyof Theme['text']-Text color.
bgkeyof Theme['background']-Background color.
borderColorkeyof Theme['border']-Border color.
asElementType'tfoot'Overrides the root element.

Also supports styled-system space and border props.

Source code

If this page does not answer your question, have a look at the implementation of the component for more detail.