BLOCKS / CORE

Data Table block

A fully data-driven table with zebra striping, click-to-sort columns, density presets, and per-column alignment.

Zebra-striped rows

Setting zebraEnabled to true alternates the background of every other row, making wide tables easier to scan without adding any extra markup.

NAMEROLEDEPARTMENTSTATUS
Sarah MitchellLead DesignerDesignActive
James CooperSenior EngineerEngineeringActive
Emily ZhangProduct ManagerProductOn Leave
Michael TorresDevOps EngineerEngineeringActive
Anna KowalskiMarketing LeadMarketingActive

Sortable columns

With sortableEnabled on, every header becomes clickable and shows a sort indicator. Sorting itself runs entirely client-side, no page reload needed.

PRODUCTSKUPRICESTOCK
Wireless KeyboardWK-1042$89.00234
USB-C HubUC-3387$49.00512
Monitor StandMS-2201$129.0087
Desk LampDL-0556$65.00341
Webcam HDWC-7780$159.00156

Compact density

The density attribute switches between normal, compact, and clean padding presets — compact tightens both padding and font size, ideal for dense data like logs.

TIMESTAMPLEVELSERVICEMESSAGEDURATION
2026-03-23 09:14:02INFOauth-svcUser login successful42ms
2026-03-23 09:14:05WARNapi-gatewayRate limit approaching128ms
2026-03-23 09:14:11INFOpayment-svcTransaction processed215ms
2026-03-23 09:14:18ERRORemail-svcSMTP connection timeout5002ms
2026-03-23 09:14:22INFOcdn-svcCache purged successfully8ms

Right-aligned numeric column

Alignment is set per column through tableHeaders[].align — here the Budget column is right-aligned while the rest of the table stays left-aligned by default.

PROJECTCLIENTDEADLINEBUDGET
Website RedesignAcme CorpApr 15, 2026$24,000
Mobile AppTechStart IncMay 30, 2026$68,000
Brand IdentityGreenleaf CoJun 10, 2026$15,500
E-commerce PlatformShopWell LtdJul 22, 2026$92,000
Dashboard UIDataViz IncAug 05, 2026$41,000

Dark background

Every color attribute — wrapper, header, cell text, row borders, first column — is independent, so a full dark theme is just a different set of hex values on the same block.

QUARTERREVENUEEXPENSESPROFITMARGIN
Q1 2026$1,240,000$890,000$350,00028.2%
Q4 2025$1,180,000$820,000$360,00030.5%
Q3 2025$1,050,000$780,000$270,00025.7%
Q2 2025$980,000$740,000$240,00024.5%
Q1 2025$920,000$710,000$210,00022.8%