$el

El $el(

  1. String tagName, {
  2. String? key,
  3. String? className,
  4. String? id,
  5. Map<String, dynamic>? style,
  6. Map<String, dynamic>? spread,
})

Creates any HTML element by tag name for JSX-style composition.

Use this for elements not covered by specific factories.

Usage:

$el('custom-element', className: 'my-class') >> 'Content'

Implementation

El $el(
  String tagName, {
  String? key,
  String? className,
  String? id,
  Map<String, dynamic>? style,
  Map<String, dynamic>? spread,
}) => El(
  _createJsxElement(
    tagName,
    _buildJsxProps(
      key: key,
      className: className,
      id: id,
      style: style,
      spread: spread,
    ),
  ),
);