Subcomponents
Title
children
string
✅
hasPadding
boolean
❌
stackPadding
boolean
❌
description
string
❌
ControlBar
children
ReactNode
✅
hasPadding
boolean
❌
stackPadding
boolean
❌
Content
children
ReactNode
✅
columnSizes
string
❌
fixedColumns
{ column: number, leftPosition: string }
❌
fillStyle
'solid' | 'striped"
❌
borderStyle
'ruled' | 'grid' | 'none'
❌
Header
This subcomponent wrapper controls the header of the Table
row structure.
children
ReactNode
✅
HeaderCell
children
ReactNode
✅
alignment
'left' | 'center' | 'right' | 'spaceBetween'
❌
Body
This subcomponent wrapper controls the content where are all the rows of the Table
are going to be placed.
children
ReactNode
✅
Row
children
ReactNode
✅
isSelected
boolean
❌
hasError
boolean
❌
Cell
children
ReactNode
✅
alignment
'left' | 'center' | 'right' | 'spaceBetween'
❌
Stack
The Stack
content is a exclusive content of SDS Table
component, where it is being added a new structure that will replace the Table.Content
by a more easy to read layout for mobile devices where developers can introduce a simplified version of the Table content.
children
ReactNode
✅
fillStyle
'solid' | 'striped'
❌
borderStyle
'ruled' | 'none'
❌
StackHeader
This is a special subcomponent wrapper, that works as a initial row on the top the StackTable
layout.
children
ReactNode
✅
columnSizes
string
❌
StackHeaderCell
children
ReactNode
✅
alignment
'left' | 'center' | 'right' | 'spaceBetween'
❌
StackBody
This subcomponent wrapper contains the whole structure of the TableStack
children
ReactNode
✅
StackItem
This subcomponent wrapper represents the rows in the standard Table
component. Here, developers are able to insert multiple rows that will be the equivalento to the columns in the standard Table
component.
This new structure is to facilitate the reading of rows in mobile devices, opting for a vertical layout instead a horizontal.
children
ReactNode
✅
isSelected
boolean
❌
hasError
boolean
❌
StackRow
children
ReactNode
✅
columnSizes
string
❌
StackCell
children
ReactNode
✅
asLabel
boolean
❌
alignment
'left' | 'center' | 'right' | 'spaceBetween'
❌
Last updated