Skip to main content
Add hx-* attributes to your markup, return a rendered partial from the route, and HTMX swaps the result into the page.

Cross-element updates

Set the HX-Trigger response header to fire an event that other elements listen for. This is how one action refreshes an unrelated part of the page.

Built-in modals

Native alert(), confirm() and prompt() are a feather check error. The components above are styled, dark-mode aware and testable.

Where partials live

HTMX response fragments belong in templates/partials/, separate from full page templates in templates/pages/. A partial renders HTML with no layout wrapper, which is what HTMX expects to swap in.