Skip to content

@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?

optional children: ComponentChildren

Defined in: types/custom-attributes.d.ts:12

Child nodes / JSX children for the element.


dangerouslySetInnerHTML?

optional dangerouslySetInnerHTML: 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?

optional on: Record<string, Function>

Defined in: types/custom-attributes.d.ts:19

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


onCapture?

optional onCapture: Record<string, Function>

Defined in: types/custom-attributes.d.ts:21

Compatibility event map for capture-phase handlers.


ref?

optional ref: Ref<T>

Defined in: types/custom-attributes.d.ts:16

Ref object or callback that receives the created DOM node.