Debian Codegraph @

www/src/content/reference/04-config/08-htmx-config-indicatorClass.md

raw symbols SCIP
1 ---
2 title: "htmx.config.indicatorClass"
3 description: "CSS class for loading indicators"
4 ---
5
6 The `htmx.config.indicatorClass` option sets the CSS class applied to elements specified by [`hx-indicator`](/reference/attributes/hx-indicator) during requests.
7
8 **Default:** `"htmx-indicator"`
9
10 ## Example
11
12 ```javascript
13 htmx.config.indicatorClass = "loading";
14 ```
15
16 ```html
17 <meta name="htmx-config" content='{"indicatorClass":"loading"}'>
18 ```
19
20 Elements with this class can be styled to show loading states.