This ought to be possible with event destructuring: https://hyperscript.org/docs/#event_destructuring The htmx docs say that the value of showMessage in your case is put in the event.detail.value slot, and the hyperscript docs linked above say that you can destructure properties found either on the event or on the event.detail properties. So it should be possible to use the syntax 'showMessage(value)' (or maybe 'showMessage(detail.value)') in your hyperscript.
