Go Main page
Go Main page

Web components

cover

components

TableRow

v.1.0.0 | Saturn

Usage

import { TableRow, TableCell } from '@kubit-ui-web/react-components'
1234567
<TableRow variant="HEADER_ROW_DEFAULT">
  <TableCell variant="HEADER_CELL_DEFAULT">Header Cell 1</TableCell>
  <TableCell variant="HEADER_CELL_DEFAULT">Header Cell 2</TableCell>
  <TableCell variant="HEADER_CELL_DEFAULT">Header Cell 3</TableCell>
  <TableCell variant="HEADER_CELL_DEFAULT">Header Cell 4</TableCell>
  <TableCell variant="HEADER_CELL_DEFAULT">Header Cell 5</TableCell>
</TableRow>

Props

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

PropertyTypeDefaultDescription
variantstring-Current variant of TableRow
idstring-HTML identifier
activeboolean-When true, active styles will be applied if defined
hoverablebooleantrueWhen true, the row will change its styles when hovered
componentstring or React.ComponentType<any>trHTML component to render
onClickfunction-onClick function
onMouseEnterfunction-onMouseEnter function
onMouseLeavefunction-onMouseLeave function
dataTestIdstringtableRowId for testing
ctvstring-Modify styles for the component