Tag name for the created element.
Optional
attributes?: Attributes<TN>Attributes to set on element.
Optional
cssVars?: CssVarsCSS variables to set on element.
Optional
dataset?: DatasetDataset entries to set on element.
Optional
on?: EventListenersOrDescriptorsForEvent listeners or EventDescriptorFor
objects to set on 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.
Optional
styles?: StylesStyles to set on element.
Options for creating an element using
createElement
.