Usage
To create a basic table, compose <Table>
, <TableHeader>
, <TableBody>
, <TableRow>
, <TableHead>
, and <TableCell>
.
Name | Role | Last Active | Views |
---|---|---|---|
Thomas Kao | Creator | Jul 01, 2024 | 70.3k |
Aleksandar Radic | Team Admin | Jul 01, 2024 | 52.4k |
Maria Mi | Team Admin | Jul 01, 2024 | 20.3k |
Loading
Show a loading state by passing loading
to <TableBody>
along with numColumns
and numRows
.
Name | Role | Last Active | Views |
---|---|---|---|
API Reference
Table
Wraps the table and its content.
Inherits properties from HTMLTableElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode | |
className | string | |
containerClassName | string |
TableHeader
Wraps one or more <TableRow>
s containing <TableHead>
cells.
Inherits properties from HTMLTableSectionElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode | |
className | string |
TableBody
Wraps one or more <TableRow>
s containing <TableCell>
s.
Inherits properties from HTMLTableSectionElement
.
Prop | Type | Default |
---|---|---|
checkboxRow | number | |
children | ReactNode | |
className | string | |
loading | boolean | |
numColumns | number | |
numRows | number | |
skeletonClassName | string |
TableRow
Wraps a table row and its content.
Inherits properties from HTMLTableRowElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode | |
className | string | |
disabled | boolean |
TableHead
A table header cell.
Inherits properties from HTMLTableCellElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode | |
className | string |
TableCell
A table cell.
Inherits properties from HTMLTableCellElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode | |
className | string |
TableCaption
A table caption.
Inherits properties from HTMLTableCaptionElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode | |
className | string |