Table
A responsive table component.
Default
A table with header, body, footer, and caption.
| Invoice | Status | Method | Amount |
|---|---|---|---|
| INV001 | Paid | Credit Card | $250.00 |
| INV002 | Pending | PayPal | $150.00 |
| INV003 | Unpaid | Bank Transfer | $350.00 |
| INV004 | Paid | Credit Card | $450.00 |
| Total | $1,200.00 | ||
Usage
julia
using Suite
Main.Table(
TableHeader(
TableRow(
TableHead("Name"),
TableHead("Email"),
),
),
TableBody(
TableRow(
TableCell("Alice"),
TableCell("alice@example.com"),
),
),
)API Reference
Components
All table sub-components (TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption) accept class, children..., and kwargs....
| Component | HTML Element | Description |
|---|---|---|
| Table | div > table | Scrollable table container |
| TableHeader | thead | Table header section |
| TableBody | tbody | Table body section |
| TableFooter | tfoot | Table footer section |
| TableRow | tr | Table row with hover state |
| TableHead | th | Header cell |
| TableCell | td | Data cell |
| TableCaption | caption | Table caption text |