$textarea
El
$textarea(
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));
}