Setting indeterminate in checkbox input with LiveView

How are people setting the indeterminate flag on a checkbox in LiveView?

I looked at adding a Hook with a MutationObserver on a data-attribute I set for it, but that seems like a lot.

Is there an easier way I missed?
Thanks