createElement
createElement<
T>(tag,style?,attributes?):T
Defined in: packages/sigma/src/utils/misc.ts:43
Function used to create DOM elements easily.
Type Parameters
Section titled “Type Parameters”T extends HTMLElement
Parameters
Section titled “Parameters”string
style?
Section titled “style?”Partial<CSSStyleDeclaration>
attributes?
Section titled “attributes?”PlainObject<string>
Returns
Section titled “Returns”T