Alpine plugins are dropping, keep an eye on Caleb Porzio's announcements.
๐ฅณ New Alpine Plugin: Persist ๐พ
Easily persist data across page loads by using a nifty little decorator function: $persist()
Think data-table filters, currently active tab, preserving a user's decision to hide a notification, etc.
Dig it: https://alpinejs.dev/plugins/persist
โ Caleb Porzio (@calebporzio) July 22, 2021
๐๐ New Alpine plugin drop today: Intersect ๐๐
A simple, declarative way to trigger some JS when an element enters the viewport (scroll-triggered animations, etc...)
Oh, also it (currently) weighs only 311 bytes!
Check it oooouuuut: https://alpinejs.dev/plugins/intersect
โ Caleb Porzio (@calebporzio) July 12, 2021
This newsletter supported by my GitHub Sponsors.
I guess Itโs not possible to use the new $persist inside https://t.co/8gGUmnPSOL, I did something like this
pic.twitter.com/Tr799FdCEj #alpinejs #alpine #persist
โ Giorgio Pogliani (@giorgiopogliani) July 23, 2021
If you've got something to share with the Alpine.js community, you can submit your link or reach out to me on twitter @hugo__df.
Here are this week's Alpine.js adopters:
Demos:
Django, HTMX and Alpine.JS: A Match Made In Heaven by @Guoxiang_Pan
How to Setup User Notifications for your Django App - Part 2 by @AdvantchHQ
Headless WordPress is Overrated: A Case for The Nearly-Headless Web App by @AlexStandiford
Let's Build An Instagram Clone With The PETAL(Phoenix, Elixir, TailwindCSS, AlpineJS, LiveView) Stack by @ElixirLearn
Fixes:
github.com/rehhouari/alpinejs-i18n has been updated to support Alpine v3 by @rehhouari