Tag name for the created element.
Optionalattributes?: Attributes<ElementOf<TN>> | Record<string, any>Attributes to set on an element.
OptionalcssVars?: CssVarsCSS variables to set on an element.
Optionaldataset?: Dataset | Record<string, any>Dataset entries to set on an element.
Optionalnamespace?: NamespaceNamespace to use when creating the element. This is required for elements
that need to be created with document.createElementNS()
(namely, SVG and MathML elements).
Optionalon?: EventListenersOrDescriptorsFor<TN>Event listeners or EventDescriptorFor objects to set on an element.
The EventDescriptor is an object with a listener field that defines
the callback that is fired when the corresponding event is dispatched and
an options object matching the options argument in addEventListener.
See the MDN documentation for additional details.
Optionalstyles?: StylesStyles to set on an element.
Options for creating an element using
createElement.