TableBody

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

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

<Table>
  <TableBody>
    <TableRow>
      <TableCell>web</TableCell>
    </TableRow>
  </TableBody>
</Table>

Demos

For usage examples, visit the component demo page: Table

Import

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

Props

PropTypeDefaultDescription
colorkeyof Theme['text']-Text color.
bgkeyof Theme['background']-Background color.
borderColorkeyof Theme['border']-Border color.
asElementType'tbody'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.