am urmatoarele într-o componentă stocate în resources/views/components/green-button.blade.php în laravel 8.
<button {{ $attributes->merge(['type' => 'button', 'class' => 'px-4 inline-flex justify-center py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500']) }}>
{{ $slot }}
</button>
Eu folosesc asta :
<x-green-button class="px-0"
title="Click to show or hide data entry for {{$person->firstname}}."
wire:click="toggleVisibility({{$person->id}})">
<h3 class="my-1">{{$person->FullName_fh}}</h3>
</x-green-button>
Componenta are o axa x umplutură de px-4. Trec px-0, dar nu există nici un efect. Ce fac gresit?
rbd