tall
tall copied to clipboard
Add a spinner while loading
A visual clue would be helpful while livewire is doing something in the background.
I recommend the tailwind spinner plugin for this purpose. I'd be willed to create a PR if any of the maintainers (I assume @imliam and @DanHarrin) approve the usage of an additional tailwind plugin.
Hey, I'd rather reduce the number of unofficial dependencies really? I reckon we could get away with a loading class on the buttons -
wire:loading.class="opacity-75 cursor-wait"
This works a treat normally.
@DanHarrin Ok. Will make it. 😎
Since Tailwind now supports animations, this could be implemented without adding a dependency: https://tailwindcss.com/docs/animation#spin.