Go Main page
Go Main page

Web components

cover

components

TableV2

v.1.0.0 | Saturn

Usage

import { TableV2, TableCaption, TableHead, TableBody, TableFoot, TableRow, TableCell } from '@kubit-ui-web/react-components'
12345678910
<TableV2 variant="DEFAULT">
  <TableCaption variant="DEFAULT">Caption Example</TableCaption>
  <TableHead variant="DEFAULT">
      <TableRow hoverable={false} variant="HEADER_ROW_DEFAULT">
        <TableCell hidden th variant="HEADER_CELL_DEFAULT">
          Header Cell 1
        </TableCell>
        <TableCell th variant="HEADER_CELL_DEFAULT">
          Header Cell 2
        </TableCell>

Props

Let's delve into the versatility of the tableV2 component by examining all its avalaible props.

PropertyTypeDefaultDescription
variantstring-Current variant of TableV2
autoRightStickyCalcbooleantrueWhen true, the table will calc the sticky right position for those cells marked as sticky right
autoLeftStickyCalcbooleantrueWhen true, the table will calc the sticky left position for those cells marked as sticky left
aria-labelstring-Only when it has scroll, scrollable container aria label
aria-labelledbystring-Only when it has scroll, scrollable container aria labelled by
hasScrollDisabledbooleanfalseDisable scroll in the scrollable container
disableShadowEffectsbooleanfalseWhen true, position table will be sticky
stickybooleanfalseDisable shadow effects
componentstring or React.ComponentType<any>tableHTML component to render
dataTestIdstringtableId for testing
ctvstring-Modify styles for the component