$th

El $th({

  1. String? key,
  2. String? className,
  3. String? id,
  4. int? colSpan,
  5. int? rowSpan,
  6. String? scope,
  7. Map<String, dynamic>? style,
  8. Map<String, dynamic>? spread,
})

Creates a <th> element wrapper for JSX-style composition.

Implementation

El $th({
  String? key,
  String? className,
  String? id,
  int? colSpan,
  int? rowSpan,
  String? scope,
  Map<String, dynamic>? style,
  Map<String, dynamic>? spread,
}) {
  final p = _buildJsxProps(
    key: key,
    className: className,
    id: id,
    style: style,
    spread: spread,
  );
  if (colSpan != null) p['colSpan'] = colSpan;
  if (rowSpan != null) p['rowSpan'] = rowSpan;
  if (scope != null) p['scope'] = scope;
  return El(_createJsxElement('th', p));
}