wire:loading
Laravel Livewire Documentation Reference
Since Magewire is heavily inspired by Laravel Livewire, many concepts are either identical or very similar. To avoid duplicating documentation, this page only covers Magewire-specific and platform-specific details. For all general concepts and in-depth explanations, you can refer to the corresponding Laravel Livewire documentation.
wire:loading toggles an element for the duration of a component commit. Magewire's base CSS hides loading elements
before the browser runtime starts, preventing an initial flash.
<button type="button" wire:click="save" wire:loading.attr="disabled">
<?= $escaper->escapeHtml(__('Save')) ?>
</button>
<span wire:loading.delay wire:target="save" role="status">
<?= $escaper->escapeHtml(__('Saving…')) ?>
</span>
Use wire:target to limit the state to a specific action or property update. Without a target, the element responds to
compatible commits from its component. Delay modifiers avoid flashing an indicator for fast requests; display, class,
attribute, and removal modifiers follow the Livewire 3 behavior.
For page-level notifier messages driven by a PHP configuration map, see Magewire Loaders.