Option function
An option element.
The HTML <option> element is used to define an item in a select, optgroup, or datalist.
Implementation
Component Option({
String? className,
String? style,
String? id,
String? label,
String? value,
bool selected = false,
bool disabled = false,
Component? child,
List<Component>? children,
Map<String, String>? attributes,
Map<String, EventCallback>? events,
Key? key,
}) {
return jaspr.option(
resolveChildren(child, children),
classes: className,
styles: parseStyles(style),
id: id,
label: label,
value: value,
selected: selected,
disabled: disabled,
attributes: attributes,
events: events,
key: key,
);
}