Table
Displays structured data in rows and columns for easy comparison, sorting, and scanning of information.
Loading...
Installation
Usage
API
Separator Props
For Table Component
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | ReactNode[] | Table structure content. Typically includes TableHead and TableBody components. | - |
| className | string | Additional CSS classes to customize the table styling. | - |
For Table Head
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | ReactNode[] | Header rows of the table. Typically composed of TableRow and TableHeadCell components. | - |
| className | string | Additional CSS classes to customize the table header styling. | - |
For Table Body
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | ReactNode[] | Body rows of the table. Typically composed of TableRow and TableCell components. | - |
| className | string | Additional CSS classes to customize the table body styling. | - |
For Table Row
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | ReactNode[] | Cells rendered within a table row. | - |
| className | string | Additional CSS classes to customize the table row styling. | - |
For Table Head Cell
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | Content displayed inside a table header cell (th). | - |
| className | string | Additional CSS classes to customize the table header cell styling. | - |
For Table Cell
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | Content displayed inside a table data cell (td). | - |
| className | string | Additional CSS classes to customize the table cell styling. | - |
Credits
This component is inspired by Rehman Kalawant Design Shared On Github.