Table
The Table component is used to show information.
1. Import
KUMUI exports 6 Table-related components:
import { Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow, } from "@rohitgadekar/kimui";
2. Usage
| Name | Status | Role |
|---|---|---|
| John Doe | Active | Developer |
| John Doe | Active | Developer |
| John Doe | Active | Developer |
| John Doe | Active | Developer |
3. API
3.1 Table
| Name | Status | Role |
|---|---|---|
| John Doe | Active | Developer |
| John Doe | Active | Developer |
| John Doe | Active | Developer |
| John Doe | Active | Developer |
3.2 TableHeader
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | React.ReactNode | Contains the heading row for the table | - |
3.3 TableRow
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | React.ReactNode | Represents each row of data in the table | - |
3.4 TableHead
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | React.ReactNode | Represents the heading of a column | - |
3.5 TableBody
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | React.ReactNode | Contains all the data rows of the table | - |
3.6 TableCell
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | React.ReactNode | Represents a single cell in a row | - |