Basic DataTable

DataTable adds a styled title bar above the standard Table rows.

Team Members

NameRoleDepartmentStatus
Juste A.CEOExecutiveActive
ClaudeCTOEngineeringActive
Ada L.Lead EngineerEngineeringAway

Order History

Track orders with status badges showing delivery progress.

Recent Orders

OrderCustomerAmountDateStatus
#1042Alice M.$129.00Feb 10, 2026Delivered
#1041Bob K.$89.50Feb 9, 2026Shipped
#1040Carol D.$245.00Feb 8, 2026Processing
#1039Dave R.$67.25Feb 7, 2026Cancelled

Without Title

Omit the title prop for a clean table without the header bar.

EndpointMethodLatencyStatus
/api/usersGET42ms200
/api/ordersPOST128ms201
/api/paymentsPOST312ms500

Usage

<DataTable title="Team Members"> <tr><th>Name</th><th>Role</th><th>Department</th></tr> <tr><td>Juste A.</td><td>CEO</td><td>Executive</td></tr> <tr><td>Claude</td><td>CTO</td><td>Engineering</td></tr></DataTable>

Props

PropTypeDefaultDescription
titletext""Header title displayed above the table
childrencontent-Table rows (tr, th, td elements)