button function

Element button(
  1. dynamic children, {
  2. String? type,
  3. String? id,
  4. String? className,
  5. Map<String, dynamic>? attributes,
  6. dynamic onClick(
    1. MouseEvent
    )?,
})

Implementation

Element button(
  dynamic children, {
  String? type,
  String? id,
  String? className,
  Map<String, dynamic>? attributes,
  Function(web.MouseEvent)? onClick,
}) => _el(
  'button',
  children,
  id: id,
  className: className,
  attributes: {'type': type, ...?attributes},
  events: {'click': ?onClick},
);