Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

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

T

T extends HTMLElement

Parameters

tag

string

style?

Partial<CSSStyleDeclaration>

attributes?

PlainObject<string>

Returns

T