Zep Fietje
zepfietje.com
Zep Fietje
@zepfietje.com
You could achieve that using getAttributes('attribute') in the hook, but I definitely dream of actual properties for attributes too...
October 19, 2025 at 12:49 PM
No need to use the attributes array for computed attributes!
October 18, 2025 at 2:05 PM
Keep your Blade views clean by moving Alpine.js attributes into your component’s JS file.

Then, all you need in your Blade view is:
x-data="tabs"
October 10, 2025 at 2:27 PM
Automatically include component CSS and JS in your compiled assets by adding these two lines to your app.js file.
October 10, 2025 at 2:27 PM