My new favorite technique for showing loading indicators in Livewire buttons
I've been getting a lot of questions lately about showing loading indicators on buttons in Livewire and Flux. Turns out with a dash of Tailwind, good loading indicators aren't that hard to build! Here's a preview of the new button loading functionality I added to Flux yesterday: 🔥 If you haven't purchased your copy of Flux yet, we're still running the launch sale. It's almost 50% off during launch for unlimited projects forever. Pretty hard to beat. Grab your Flux license here → Before we dive into how you can implement something like this in Livewire, here's a look at how you use it in Flux: Yeah, that's it. Just add "wire:click" to a button like you normally would, and Flux will inject some extra code to show a loading indicator when a request is out to the server. Flux also adds loading indicators to submit buttons using "type="submit"". What makes a good loading button? First: you don...