Go Main page
Go Main page

Web components

cover

components

TableCell

v.1.0.0 | Saturn

Usage

import { TableCell } from '@kubit-ui-web/react-components'
123
<TableCell variant="HEADER_CELL_DEFAULT">
  TableCell
</TableCell>

Props

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

PropertyTypeDefaultDescription
variantstring-Current variant of TableCell
idstring-HTML identifier
scopestring-It specifies whether a header cell is a header for a column, row, or group of columns or rows
thbooleanfalseWhen true a `th` HTML component will be render
colSpannumber-It defines the number of columns a cell should span
rowSpannumber-It specifies the number of rows a cell should span
heightstring-CSS hight
widthstring-CSS width
minWidthstring-CSS min-width
maxWidthstring-CSS max-width
textAlignstring-CSS text-align
hiddenboolean-When true, it will be hidden, but read only by screen readers
stickyboolean or "right" or "left"-It defines the sticky position (Avoid using boolean values for `sticky`, it is preferable to use 'left' or 'right' to define the sticky position)
topstring-CSS top
leftstring-CSS left
rightstring-CSS right
bottomstring-CSS bottom
componentstring or React.ComponentType<any>tdHTML component to render
onClickfunction-onClick function
onMouseEnterfunction-onMouseEnter function
onMouseLeavefunction-onMouseLeave function
aria-labelstring-aria-label
aria-labelledbystring-aria-labelledby
dataTestIdstringtableCellId for testing
ctvstring-Modify styles for the component