$label

El $label({

  1. String? className,
  2. String? id,
  3. String? htmlFor,
  4. Map<String, dynamic>? style,
  5. Map<String, dynamic>? props,
})

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

Implementation

El $label({
  String? className,
  String? id,
  String? htmlFor,
  Map<String, dynamic>? style,
  Map<String, dynamic>? props,
}) {
  final p = _buildJsxProps(
    className: className,
    id: id,
    style: style,
    props: props,
  );
  if (htmlFor != null) p['htmlFor'] = htmlFor;
  return El(_createJsxElement('label', p));
}