loadingRow function

HTMLElement loadingRow([
  1. String? label
])

A spinner row with an optional label, for inline loading states.

Implementation

web.HTMLElement loadingRow([String? label]) => el(
  'div',
  classes: 'row',
  role: 'status',
  children: [
    el('span', classes: 'spinner'),
    if (label != null) el('span', classes: 'muted', text: label),
  ],
);