Table

A responsive table component for displaying data in a structured format.

Default

The standard table with invoices data.

A list of your recent invoices.
InvoiceStatusMethodAmount
INV001PaidCredit Card$250.00
INV002PendingPayPal$150.00
INV003UnpaidBank Transfer$350.00
INV004PaidCredit Card$450.00
INV005PaidPayPal$550.00
Total$2,500.00

Project Status

Using badges within table cells to show status colors.

ProjectStatusPriorityProgress
Spartan UICompletedHigh100%
Analytics DashboardIn ProgressMedium65%
Mobile AppDelayedHigh30%
DocumentationIn ReviewLow90%

File Browser

Integrating icons into tables for better visual identification.

NameTypeSize
resume.pdfPDF Document1.2 MB
profile-picture.jpgJPEG Image4.5 MB
backup-2024.zipArchive156 MB
index.htmlHTML File12 KB

Installation & Usage

Installation

Imports

Basic Usage

API Reference

Helm API

The Helm directives provide the spartan/ui styling for the table.

DirectiveSelectorDescription
HlmTable[hlmTable]Main table directive for layout and typography.
HlmTableContainer[hlmTableContainer] Container for the table, handles overflow and rounded corners.
HlmTHead[hlmTHead]Styles for the table header section.
HlmTBody[hlmTBody]Styles for the table body section.
HlmTFoot[hlmTFoot]Styles for the table footer section.
HlmTr[hlmTr]Styles for table rows.
HlmTh[hlmTh]Styles for table header cells.
HlmTd[hlmTd]Styles for table data cells.
HlmCaption[hlmCaption]Styles for the table caption.

Brain API

The Table component is currently styling-only and does not have a Brain implementation for logic. For logic-heavy tables, consider using the Data Table component.