Networking
hx-multipart | Stream HTML with multipart/mixed |
|---|---|
hx-sse | Stream HTML with text/event-stream (SSE) |
hx-ws | Stream HTML and send data over WebSockets |
UX
hx-live | Add reactive bindings to HTML |
|---|---|
hx-optimistic | Show optimistic UI with hx-optimistic |
hx-browser-indicator | Show tab's spinner with hx-browser-indicator |
hx-prompt | Prompt before requests with hx-prompt='Reason?' |
Performance
hx-preload | Preload on hover with hx-preload='mouseover' |
|---|---|
hx-ptag | Skip unchanged polls with HX-PTag: "v42" |
hx-history-cache | Restore back/forward pages from sessionStorage |
Swaps
hx-head | Merge tags with hx-head='merge' |
|---|---|
hx-upsert | Update or insert elements with hx-swap='upsert' |
hx-targets | Target many elements with hx-targets='.selector' |
hx-download | Download files with hx-swap='download' |
Compatibility
htmx-2-compat | Restore htmx 2.x defaults and event names on htmx 4 |
|---|---|
hx-alpine-compat | Run htmx alongside Alpine.js without conflicts |
Security
hx-csp | Make htmx work under strict Content Security Policy |
|---|