🚀ReacUI is currently in Beta. We're actively improving it! ❣️
Table
A flexible table component for displaying structured data
| Name | Role | |
|---|---|---|
| John Doe | john@example.com | Admin |
| Jane Smith | jane@example.com | Editor |
Installation
The Table component is part of the ReacUI library. Install the package to use it in your project.
Import
Import the Table component into your React component.
Basic Usage
A simple table with headers and body rows.
| Product | Price |
|---|---|
| Product A | $100 |
| Product B | $200 |
Table Structure
The Table component is composed of several subcomponents: Header, Body, Row, HeaderCell, and Cell.
Custom Styling
Apply custom styles to any part of the table using the className prop.
| Name | Status |
|---|---|
| Project Alpha | Active |
| Project Beta | In Review |
API Reference
The following props are available for the Table components.
| Component | Prop | Type | Default | Description |
|---|---|---|---|---|
| Table | children | ReactNode | - | The table content. |
| Table | className | string | '' | Additional CSS classes. |
| Table.Header | children | ReactNode | - | The table header content. |
| Table.Header | className | string | '' | Additional CSS classes. |
| Table.Body | children | ReactNode | - | The table body content. |
| Table.Body | className | string | '' | Additional CSS classes. |