microscope-js - v0.0.0
    Preparing search index...
    • Create a child element with classes, attributes, and styles in one call. Lets renderers avoid hand-rolling document.createElement boilerplate.

      Type Parameters

      • K extends keyof HTMLElementTagNameMap

      Parameters

      • tag: K
      • opts: {
            attrs?: Record<string, string>;
            className?: string;
            style?: Partial<CSSStyleDeclaration>;
            text?: string;
        } = {}

      Returns HTMLElementTagNameMap[K]