There are also the action and formAction attributes extended by the React library which e.g. Next.js uses to perform RPCs as part of their server actions. I am not sure, if this also qualifies as a welcome PR.
I pasted some sample code here where I replicated the basis of this video.
Maybe someone can chime in to let me know if I am on the right track with the type definitions. I also tried to use a polymorphic variant for the actionType but hat trouble to completely unbox the value needed as input for the action attribute.