$form

El $form({

  1. String? className,
  2. String? id,
  3. String? action,
  4. String? method,
  5. Map<String, dynamic>? style,
  6. Map<String, dynamic>? props,
  7. void onSubmit(
    1. SyntheticEvent
    )?,
})

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

Implementation

El $form({
  String? className,
  String? id,
  String? action,
  String? method,
  Map<String, dynamic>? style,
  Map<String, dynamic>? props,
  void Function(SyntheticEvent)? onSubmit,
}) {
  final p = _buildJsxProps(
    className: className,
    id: id,
    style: style,
    props: props,
    onSubmit: onSubmit,
  );
  if (action != null) p['action'] = action;
  if (method != null) p['method'] = method;
  return El(_createJsxElement('form', p));
}