tableHead function
Semantic <th> table header cell element.
Implementation
BloomNode tableHead({
String? text,
List<BloomNode>? children,
String extraClassName = '',
int? colSpan,
int? rowSpan,
}) {
return El(
'th',
attrs: {
if (colSpan != null) 'colspan': '$colSpan',
if (rowSpan != null) 'rowspan': '$rowSpan',
},
className: cn([
'h-10 px-4 text-left align-middle font-medium text-[var(--text-muted)] whitespace-nowrap text-xs sm:text-sm',
extraClassName,
]),
children: [
if (text != null) Text(text),
if (children != null) ...children,
],
);
}