UI Interface

Tables

From simple lists to editable data grids. Each pattern is built on sx-table with small modifiers; open Code to copy the markup.

Form elements

Basic table

Wrap in sx-table-wrap so wide tables scroll inside the card.

InvoiceCustomerIssuedAmount
INV-2048Northwind TradersNov 02, 2026$4,820.00
INV-2049Redwood LabsNov 04, 2026$1,260.50
INV-2050Harbor & PineNov 07, 2026$9,400.00
INV-2051Lumen StudioNov 09, 2026$2,175.25

Striped, hoverable and bordered

Combine modifiers on the same table.

Striped

PlanSeats
Starter3
Team24
Business112
Enterprise480

Hoverable

RegionOrders
North America8,420
Europe6,115
Asia Pacific4,902
Latin America1,873

Bordered

TierPrice
Basic$9
Pro$29
Scale$79
CustomContact

Density toggle

Switch between compact and comfortable row heights.

TaskOwnerStatusDue
Redesign onboardingAvery CollinsIn progressNov 18
Billing migrationMarcus ReyesReviewNov 21
Q4 security auditPriya NairDoneNov 10
Partner API docsJonas WeberBacklogDec 02

Sticky header with scroll

The header row stays visible while the body scrolls inside a fixed-height wrapper.

OrderCustomerChannelTotal
#10421Hannah OrtizWeb$128.00
#10422Liam ChenMobile$64.90
#10423Sofia RossiWeb$312.40
#10424Noah PatelMarketplace$89.00
#10425Emma LarsenWeb$45.50
#10426Omar HaddadMobile$210.75
#10427Chloe MartinWeb$17.99
#10428Kenji SatoMarketplace$402.10
#10429Ava JohnsonWeb$76.25
#10430Diego AlvarezMobile$154.00

Sortable columns

Click a header to sort ascending, again for descending. Numbers sort numerically.

ProductCategoryUnitsRevenue
Aero Desk LampLighting1,240$38,440
Nimbus ChairFurniture386$96,500
Folio NotebookStationery5,820$29,100
Pulse SpeakerAudio912$72,960
Terra PlanterHome2,104$31,560

Selectable rows with bulk bar

Header checkbox selects all and shows indeterminate; the bulk bar appears when rows are selected.

ContactCompanyStage
Hannah OrtizBrightpathWon
Liam ChenOrbit FoodsProposal
Sofia RossiVela StudioNegotiation
Noah PatelKite AnalyticsLead

Expandable rows

A disclosure button reveals a detail row beneath (aria-expanded).

ShipmentRouteStatus
SH-7731Rotterdam to ChicagoIn transit
SH-7732Shenzhen to Los AngelesCustoms hold
SH-7733Hamburg to TorontoDelivered

Avatars, progress, badges and actions

A realistic team table using kit components inside cells.

MemberRoleWorkloadStatusActions
Avery Collinsavery@northwind.io
Product lead
82%
Active
Marcus Reyesmarcus@northwind.io
Engineer
56%
Active
Priya Nairpriya@northwind.io
Designer
34%
Away
Jonas Weberjonas@northwind.io
Support
95%
Overloaded

Search, pagination and column visibility

Filters the static rows, pages them five at a time and toggles columns.

CustomerCompanyCountryMRR
Hannah OrtizBrightpathUnited States$1,240
Liam ChenOrbit FoodsCanada$860
Sofia RossiVela StudioItaly$2,100
Noah PatelKite AnalyticsIndia$540
Emma LarsenFjord LabsNorway$1,780
Omar HaddadSouk DigitalUAE$990
Chloe MartinAtelier NordFrance$720
Kenji SatoHikari WorksJapan$3,050
Ava JohnsonMaple LogisticsUnited States$1,415
Diego AlvarezSol EnergySpain$660
Greta NovakLinden HealthGermany$1,925
Tariq AzizCrescent PayUnited Kingdom$2,380
Showing 1-5 of 12

Responsive: scroll or stacked cards

Left: horizontal scroll inside the wrapper. Right: tb-stack turns rows into labelled cards under 640px (resize to see).

TicketSubjectPriorityAssigneeUpdated
T-3301Cannot export CSVHighJonas2h ago
T-3302Update billing emailLowPriya5h ago
TicketSubjectPriorityAssignee
T-3301Cannot export CSVHighJonas
T-3302Update billing emailLowPriya

Empty state and loading skeleton

Use skeleton rows while data loads; show an empty state with a call to action when there is none.

NamePlanJoined
No invoices yet

Invoices you create will show up here.

Data grid with inline editing and totals

Click a quantity or price, type a new number and press Enter. Row amounts and the footer total recalculate.

ItemQtyUnit priceAmount
Design sprint workshop21800$3,600.00
Frontend development (hours)6495$6,080.00
Hosting and CDN (months)1249$588.00
Total due$10,268.00

Usage tips and accessibility

  • Right-align numeric columns with is-num and use sx-num for tabular figures.
  • Keep the toolbar above the table and pagination below, both inside the same card.
  • Prefer horizontal scroll for dense data and stacked cards for 3-5 column lists.
  • Use real <th> cells; sortable headers expose state through aria-sort.
  • Every row checkbox and icon button needs an aria-label.
  • Status is never color-only: badges carry a text label.

Hi, I’m Nova! Need a hand?