Skip to content

@serenity-is/corelib / CustomDomAttributes

Interface: CustomDomAttributes<T>

Defined in: ../domwise/dist/index.d.ts:146

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?

optional children: ComponentChildren

Defined in: ../domwise/dist/index.d.ts:148

Child nodes / JSX children for the element.


dangerouslySetInnerHTML?

optional dangerouslySetInnerHTML: object

Defined in: ../domwise/dist/index.d.ts:150

Raw HTML to assign via innerHTML. Use with caution — content is not escaped.

__html

__html: string


on?

optional on: Record<string, Function>

Defined in: ../domwise/dist/index.d.ts:156

Compatibility event map for on* handlers (jsx-dom / React style).


onCapture?

optional onCapture: Record<string, Function>

Defined in: ../domwise/dist/index.d.ts:158

Compatibility event map for capture-phase handlers.


ref?

optional ref: Ref<T>

Defined in: ../domwise/dist/index.d.ts:154

Ref object or callback that receives the created DOM node.