Skip to content

Table properties

Summary


Props table


Parameter
Type
Default
boolean
/
(JSX.Element | string)[][]
/
string
/
Record
/
string
/
Record
/
string
/
Record
/
(row: number, column: number) => void
() => {}
(row: number, column: number) => Record
() => ({})


Props list



headers

Type
Default
boolean
/




rows

Type
Default
(JSX.Element | string)[][]
/


Table elements



headerClassName

Type
Default
string
/


Custom className applied on every Table header element



headersProps

Type
Default
Record
/


Custom props applied on every Table header element



cellClassName

Type
Default
string
/


Custom className applied on every Table cell element



cellProps

Type
Default
Record
/


Custom props applied on every Table cell element



rowClassName

Type
Default
string
/


Custom className applied on every Table row element



rowProps

Type
Default
Record
/


Custom props applied on every Table row element



onClick

Type
Default
(row: number, column: number) => void
() => {}


Callback triggered when a Table cell is clicked



propsCallback

Type
Default
(row: number, column: number) => Record
() => ({})


A function to add custom props depending on Table row and column