$button
Creates a <button> element wrapper for JSX-style composition.
Implementation
El $button({
String? key,
String? className,
String? id,
String? type,
bool? disabled,
Map<String, dynamic>? style,
Map<String, dynamic>? spread,
void Function()? onClick,
}) {
final p = _buildJsxProps(
key: key,
className: className,
id: id,
style: style,
spread: spread,
onClick: onClick,
);
if (type != null) p['type'] = type;
if (disabled != null) p['disabled'] = disabled;
return El(ButtonElement.fromJS(_createJsxElement('button', p)));
}