F
Filament2mo ago
Matse

FIlament button flex

I am trying to put the loader and text on the same line but everything I try doesn't work, can someone help me out?
<x-filament::button class="flex items-center gap-1" x-on:click="importGames()"
x-bind:disabled="localSelectedCount === 0 || isLoading">
<x-filament::loading-indicator class="w-5 h-5" x-show="isLoading" />
Import games
</x-filament::button>
<x-filament::button class="flex items-center gap-1" x-on:click="importGames()"
x-bind:disabled="localSelectedCount === 0 || isLoading">
<x-filament::loading-indicator class="w-5 h-5" x-show="isLoading" />
Import games
</x-filament::button>
1 Reply
toeknee
toeknee2mo ago
<x-filament::button class="flex items-center gap-1" x-on:click="importGames()"
x-bind:disabled="localSelectedCount === 0 || isLoading">
<x-filament::loading-indicator class="w-5 h-5" x-show="isLoading" />
<span class="fi-btn-label">
Import Games
</span>
</x-filament::button>
<x-filament::button class="flex items-center gap-1" x-on:click="importGames()"
x-bind:disabled="localSelectedCount === 0 || isLoading">
<x-filament::loading-indicator class="w-5 h-5" x-show="isLoading" />
<span class="fi-btn-label">
Import Games
</span>
</x-filament::button>
Try the above

Did you find this page helpful?