Label constructor
Label({})
Creates a <label> element descriptor with htmlFor attribute shorthand.
Implementation
Label({
super.text,
super.className,
super.style,
Map<String, String>? attrs,
String? htmlFor,
super.children = const [],
super.on,
}) : super(
'label',
attrs: _mergeAttrs(attrs, {
if (htmlFor != null) 'for': htmlFor,
}),
);