htmx-interaction-patterns
Installation
SKILL.md
htmx Interaction Patterns
Build dynamic interfaces with HTML-over-the-wire — server renders HTML fragments, htmx swaps them in.
Core Concepts
htmx extends HTML with attributes that make AJAX requests and swap content — no JavaScript required.
<!-- Click button → GET /items → replace #item-list content -->
<button hx-get="/items" hx-target="#item-list" hx-swap="innerHTML">
Load Items
</button>
<div id="item-list"></div>