Xivgear Types Documentation
    Preparing search index...
    • Create an element with the given tag, options, and children.

      Type Parameters

      • X extends keyof HTMLElementTagNameMap

      Parameters

      • tag: X

        The tag to create

      • opts: ElOpts<X> = {}

        The options to use

      • nodes: (string | Node)[] = []

        Child nodes

      Returns HTMLElementTagNameMap[X]