Live demo — this example is server-driven; run the showcase locally for the interactive version.

Click to load

Use Click to load straight from a Qute template — parameters and slots instead of Java builders. This reference is generated from the runtime template sources: each template documents its parameters and slots in the header comment shown beneath its include line.

Templates

click-to-load

{#include components/htmx/click-to-load /}
Click to Load — HTMX button that replaces itself with new content 
 Required: id — used for the hx-target self-reference (#{id}) and the spinner indicator id ({id}-indicator).
                                                                                    loadUrl 
 Optional: buttonText (optional)