Just a simple example just showing that you can attach htmx attributes to custom element. Don't be afraid of using JS with HTMX!
Remember you can easily host a folder with the following command
python3 -m http.serverFind more about HTMX
[https://htmx.org/]
Find more about CustomElements
[https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements]