Nice thread on setting up TypeScript with Alpine.js (@samuelstancl packaged it up, see the “code” section)
Anyone interested in an article about how to set up TypeScript support for Alpine.js with a few lines of code? 😏 pic.twitter.com/Wwo0CN34C1
— Samuel Štancl (@samuelstancl) February 25, 2021
This email is supported by my GitHub Sponsors.
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:
[Video] Alpine.js Auto Textarea Height by @teamcodecourse
Alpine.js: The JavaScript Framework by @web_mavens
Autocomplete Search Component with Phoenix LiveView and AlpineJS by @VelinaPetrova7 via @jeremyday
Kentico Xperience Xplorations: Why We Should Be Using Alpine.js by @seangwright
Simple Alpine.js Component for Multiple Checkbox Selections by @jcarouth
Start with TALL Use Tailwind Alpine Laravel & Livewire by @NguyenL65709731
For more posts like these, you can join the Alpine.js Development Subscription, it’s a great way to support the newsletter and get early access to Alpine.js content.
LeanAdmin/alpine-typescript a package that provides full TypeScript support for Alpine.js. Lets you create class components, plain object components, and call them in x-data using Alpine.component(). And the class components even know about magic properties. By @samuelstancl
ryangjchandler/x-else, some sugar to write x-if="!condition"
by @ryangjchandler
Fixes:
x-spread
not liking undefined expression outputsx-for="a in range"
allows a 0-rangeclick.away
debouncing support