Sourceful Energy

Data Table Patterns

Patterns for displaying tabular data with sorting, filtering, and actions.

Basic Table

Simple table for displaying data without complex interactions.

DeviceTypeStatusPower
Solar InverterInverter
online
4.2 kW
Home BatteryBattery
charging
2.1 kW
EV ChargerCharger
idle
0 kW

Table with Row Actions

Add dropdown menus for row-level actions like edit, delete, or view details.

DeviceLocationStatusPower
Solar InverterRooftop
online
4.2 kW
Home BatteryGarage
charging
2.1 kW
EV ChargerDriveway
idle
0 kW
Heat PumpBasement
online
1.8 kW
Smart MeterUtility Room
online

Table with Toolbar

Add search, filters, and bulk actions above the table.

Devices
Manage your connected devices
DeviceTypeStatusPower
Solar InverterInverter
online
4.2 kW
Home BatteryBattery
charging
2.1 kW
EV ChargerCharger
idle
0 kW

Selectable Rows

Add checkboxes for selecting multiple rows for bulk actions.

DeviceStatusPower
Solar Inverter
online
4.2 kW
Home Battery
charging
2.1 kW
EV Charger
idle
0 kW

Transaction History

Tables for financial or energy transaction data with positive/negative values.

TransactionDateTypeAmountValue
TXN0012024-01-15
Export
12.4 kWh€3.72
TXN0022024-01-15
Import
2.1 kWh-€0.84
TXN0032024-01-14
Export
18.2 kWh€5.46
TXN0042024-01-14
FCR
0.5 kW€2.10

Best Practices

  • Right-align numeric columns (power, currency, quantities)
  • Use monospace font for IDs, codes, and transaction numbers
  • Keep row actions in a dropdown to save space
  • Add hover states to rows for better scanability
  • Use badges for status columns instead of plain text
  • Color-code positive/negative values (green/red)
  • Add sorting indicators to sortable columns
  • Show loading skeletons while data is fetching
  • Include empty states when no data matches filters
  • Paginate large datasets (10-25 rows per page)