$button function
Creates a button node.
Implementation
DOMElement $button({
Object? id,
Object? name,
Object? classes,
Object? style,
String? type,
Map<String, dynamic>? attributes,
Object? content,
bool? hidden,
String? role,
String? ariaLabel,
Map<String, Object?>? aria,
int? tabIndex,
bool disabled = false,
bool commented = false,
}) => $tag(
'button',
id: id,
classes: classes,
style: style,
attributes: {
'type': type != null && type.isNotEmpty ? type : 'button',
'name': ?name,
if (disabled) 'disabled': disabled,
...?attributes,
},
content: content,
hidden: hidden,
role: role,
ariaLabel: ariaLabel,
aria: aria,
tabIndex: tabIndex,
commented: commented,
);