$video
Creates a <video> element wrapper for JSX-style composition.
Implementation
El $video({
String? src,
String? className,
String? id,
int? width,
int? height,
bool? controls,
bool? autoplay,
bool? loop,
bool? muted,
String? poster,
Map<String, dynamic>? style,
Map<String, dynamic>? props,
}) {
final p = _buildJsxProps(
className: className,
id: id,
style: style,
props: props,
);
if (src != null) p['src'] = src;
if (width != null) p['width'] = width;
if (height != null) p['height'] = height;
if (controls != null) p['controls'] = controls;
if (autoplay != null) p['autoplay'] = autoplay;
if (loop != null) p['loop'] = loop;
if (muted != null) p['muted'] = muted;
if (poster != null) p['poster'] = poster;
return El(_createJsxElement('video', p));
}