Search
⌘K
Something
Table
This components allows you to create a table with a header and body. There are 6 components that you can use to create a table.
- TableContainer: The container of the table that allow the table can horizontal scroll.
- Table: The wrapper components.
- TableHead: The header of the table.
- TableBody: The body of the table.
- TableRow: The row of the table.
- TableColumn: The column of the table.
The usage of table is the same as the html table.
This components. Store at src/components/atoms/table
Basic example
This is the basic example of how to use the table. Just like the html table but have table container.
ExampleCode
| Column 1 | Column 2 | Column 3 |
| Row 1 | Row 1 | Row 1 |
| Row 2 | Row 2 | Row 2 |
| Row 3 | Row 3 | Row 3 |
Table container attributes
idstring- This is the id of the table container.
classNamestring- This is the className of the table container.
childrenReact.ReactNode- This is the children of the table container.
Table attributes
idstring- This is the id of the table.
classNamestring- This is the className of the table.
childrenReact.ReactNode- This is the children of the table.
Table head attributes
idstring- This is the id of the table head.
classNamestring- This is the className of the table head.
childrenReact.ReactNode- This is the children of the table head.
Table row attributes
idstring- This is the id of the table row.
classNamestring- This is the className of the table row.
childrenReact.ReactNode- This is the children of the table row.
Table column attributes
idstring- This is the id of the table column.
classNamestring- This is the className of the table column.
childrenReact.ReactNode- This is the children of the table column.
onClickFunction- This is the onClick event of the table column.
rowSpannumber- This is the rowSpan of the table column.
colSpannumber- This is the colSpan of the table column.
Copyright 2025 by Prine Components