--- layout: layout.njk title: > htmx - hx-indicator --- ## `hx-indicator` The `hx-indicator` attribute allows you to specify the element that will have the `htmx-request` class added to it for the duration of the request. This can be used to show spinners or progress indicators while the request is in flight. The value of this attribute is a CSS query selector of the element or elements to apply the class to. Here is an example with a spinner adjacent to the button: ```html