input

InputElement input({

  1. String? type,
  2. String? value,
  3. String? placeholder,
  4. void onChange(
    1. JSAny
    )?,
  5. Map<String, dynamic>? props,
  6. Map<String, dynamic>? style,
  7. String? className,
})

Create an input element

Implementation

InputElement input({
  String? type,
  String? value,
  String? placeholder,
  void Function(JSAny)? onChange,
  Map<String, dynamic>? props,
  Map<String, dynamic>? style,
  String? className,
}) {
  final p = _buildProps(props: props, style: style, className: className);
  if (type != null) p['type'] = type;
  if (value != null) p['value'] = value;
  if (placeholder != null) p['placeholder'] = placeholder;
  if (onChange != null) p['onChange'] = onChange;
  return InputElement.fromJS(createElement('input'.toJS, createProps(p)));
}