htmx 4.0 is under construction — migration guide

htmx.config.indicatorClass

CSS class for loading indicators

The htmx.config.indicatorClass option sets the CSS class applied to elements specified by hx-indicator during requests.

Default: "htmx-indicator"

Example

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

Elements with this class can be styled to show loading states.