$textarea

El $textarea({

  1. String? className,
  2. String? id,
  3. String? name,
  4. String? value,
  5. String? placeholder,
  6. int? rows,
  7. int? cols,
  8. bool? disabled,
  9. bool? readOnly,
  10. bool? required,
  11. Map<String, dynamic>? style,
  12. Map<String, dynamic>? props,
  13. void onChange(
    1. SyntheticEvent
    )?,
  14. void onInput(
    1. SyntheticEvent
    )?,
  15. void onFocus(
    1. SyntheticFocusEvent
    )?,
  16. void onBlur(
    1. SyntheticFocusEvent
    )?,
})

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

Implementation

El $textarea({
  String? className,
  String? id,
  String? name,
  String? value,
  String? placeholder,
  int? rows,
  int? cols,
  bool? disabled,
  bool? readOnly,
  bool? required,
  Map<String, dynamic>? style,
  Map<String, dynamic>? props,
  void Function(SyntheticEvent)? onChange,
  void Function(SyntheticEvent)? onInput,
  void Function(SyntheticFocusEvent)? onFocus,
  void Function(SyntheticFocusEvent)? onBlur,
}) {
  final p = _buildJsxProps(
    className: className,
    id: id,
    style: style,
    props: props,
    onChange: onChange,
    onInput: onInput,
    onFocus: onFocus,
    onBlur: onBlur,
  );
  if (name != null) p['name'] = name;
  if (value != null) p['value'] = value;
  if (placeholder != null) p['placeholder'] = placeholder;
  if (rows != null) p['rows'] = rows;
  if (cols != null) p['cols'] = cols;
  if (disabled != null) p['disabled'] = disabled;
  if (readOnly != null) p['readOnly'] = readOnly;
  if (required != null) p['required'] = required;
  return El(_createJsxElement('textarea', p));
}