stryrckt
Using LiveView with AlpineJS
Support for AlpineJS in LiveView was added in 0.13.3 and it works fabulously. I just wrote a blog article about it and plan another one soon on transitions with AlpineJS and Tailwind CSS.
Most Liked Responses
stryrckt
I just published a follow-on article showing how to use AlpineJS and Tailwind CSS to create LiveView modals.
stryrckt
If you are using the latest version of Alpine.js (v3), you will need to make some changes in how you set it up.
Alessandro Di Maria has a short guide on the changes you need to make in this article: Update LiveView for Alpine.js 101 - DEV Community.
stryrckt
You can certainly use localStorage from Alpine, as this article demonstrates: Sync Alpine.js x-data to localStorage/sessionStorage · Code with Hugo. So if you are skeptical about pulling in another framework, it is probably good enough.
For me, Spruce is nice because it integrates well with Alpine, allows you to watch for changes in state, and it works with x-model.









