htmx Attribute Builder

← All tools

Pick trigger, request, target, and swap — get the full element with hx-* attributes and a sentence you can paste in a PR.

Element tag
Trigger
Every N seconds
Keyup delay (ms)
HTTP method
URL
Target (CSS selector)
Swap
Confirm dialog
Indicator selector
Debounce (ms)
Throttle (ms)

Plain English

Output

About this tool

htmx extends HTML with attributes instead of a component framework. This builder assembles the common hx-* pieces so you do not memorize swap names at 11 p.m.

Always sanity-check against the htmx docs for your version — attribute names are stable but modifiers add up fast.

Read more

Free books, courses, and software

Get my programming books, course editions, and complete software.

Get the download library →