@serenity-is/domwise / CustomDomAttributes
Interface: CustomDomAttributes<T>
Defined in: types/custom-attributes.d.ts:10
Custom DOM attributes supported by DomWise on all elements.
Includes children, ref, dangerouslySetInnerHTML, and jsx-dom/react-compatible
on / onCapture event maps.
Extended by
Type Parameters
T
T
The type of the DOM element.
Properties
children?
optionalchildren:ComponentChildren
Defined in: types/custom-attributes.d.ts:12
Child nodes / JSX children for the element.
dangerouslySetInnerHTML?
optionaldangerouslySetInnerHTML:object
Defined in: types/custom-attributes.d.ts:14
Raw HTML to assign via innerHTML. Use with caution — content is not escaped.
__html
__html:
string
on?
optionalon:Record<string,Function>
Defined in: types/custom-attributes.d.ts:19
Compatibility event map for on* handlers (jsx-dom / React style).
onCapture?
optionalonCapture:Record<string,Function>
Defined in: types/custom-attributes.d.ts:21
Compatibility event map for capture-phase handlers.
ref?
optionalref:Ref<T>
Defined in: types/custom-attributes.d.ts:16
Ref object or callback that receives the created DOM node.