tableCell function
Semantic <td> table data cell element.
Implementation
BloomNode tableCell({
String? text,
List<BloomNode>? children,
String extraClassName = '',
int? colSpan,
int? rowSpan,
}) {
return El(
'td',
attrs: {
if (colSpan != null) 'colspan': '$colSpan',
if (rowSpan != null) 'rowspan': '$rowSpan',
},
className: cn(['p-4 align-middle whitespace-nowrap text-xs sm:text-sm', extraClassName]),
children: [
if (text != null) Text(text),
if (children != null) ...children,
],
);
}