R/attributes.R
x_ref.Rd
It's most useful as a replacement for APIs like getElementById and querySelector.
x_ref(ref)
The reference to give the DOM-element.
https://alpinejs.dev/directives/ref