Debian Codegraph @

www/src/content/reference/04-config/16-htmx-config-requestClass.md

raw symbols SCIP
1 ---
2 title: "htmx.config.requestClass"
3 description: "CSS class applied during requests"
4 ---
5
6 The `htmx.config.requestClass` option sets the CSS class automatically applied to the element making a request.
7
8 **Default:** `"htmx-request"`
9
10 ## Example
11
12 ```javascript
13 htmx.config.requestClass = "is-loading";
14 ```
15
16 ```html
17 <meta name="htmx-config" content='{"requestClass":"is-loading"}'>
18 ```
19
20 Use this class to style elements while they're making requests.