button function

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

Implementation

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