I have converted the HTMX modal sample (https://htmx.org/examples/modal-custom/) with tailwind here : https://jsfiddle.net/oh4cywse/1/
There is a strange behaviour when you use demo.htmx.org, when you click on the button, there are two modals opening. Not sure if this is a bug, or I'm doing something wrong