hx-ext

The hx-ext attribute enables an htmx extension for an element and all its children.

The value can be a single extension name or a comma separated list of extensions to apply.

The hx-ext tag may be placed on parent elements if you want a plugin to apply to an entire swath of the DOM, and on the body tag for it to apply to all htmx requests.

Notes

<div hx-ext="example">
  "Example" extension is used in this part of the tree...
  <div hx-ext="ignore:example">
    ... but it will not be used in this part.
  </div>
</div>