alpinejs-using-module I think this repository is self explanatory. Demo https://alpinejs-using-module.vercel.app