The htmx.config.implicitInheritance option, when set to true, causes child elements to implicitly inherit htmx attributes from parent elements.

Default: false

Example

htmx.config.implicitInheritance = true;
<meta name="htmx-config" content='{"implicitInheritance":true}'>

When enabled, attributes like hx-target on a parent apply to all child elements unless overridden.

This matches htmx 2 inheritance behaviour: request verbs (hx-get, hx-post, hx-put, hx-patch, hx-delete, hx-query), hx-action and hx-trigger are never implicitly inherited — they still require the :inherited modifier on the parent.