schema-components - v3.7.0
    Preparing search index...

    Function h

    • Build an HTML element node.

      • Tag name is type-checked (must be a known HTML tag)
      • Attributes are collected as a record — callers get IntelliSense for common attributes but can also pass aria-*, data-* etc.
      • Children are flattened; undefined, null, and false are dropped.
      • For void elements (input, img, etc.), children are ignored.

      Parameters

      • tag: string

        HTML element tag name

      • Optionalattrs: HtmlAttributes

        Optional attributes (class, id, aria-*, etc.)

      • ...children: HtmlNode[]

        Child nodes (strings are escaped by the serialiser)

      Returns HtmlElement