@props([ 'action' => null, 'label' => 'Speichern', 'loadingLabel' => 'Lädt...', 'variant' => 'primary', 'type' => 'button', ]) @php $base = 'relative inline-flex items-center justify-center px-4 py-2 rounded-lg text-sm font-medium transition disabled:opacity-100 disabled:cursor-wait'; $variants = [ 'primary' => 'bg-accent-gradient text-white hover:opacity-90', 'secondary' => 'bg-s2 border border-white/[.06] text-t1 hover:bg-s3', 'danger' => 'bg-red text-white hover:opacity-90', 'ghost' => 'text-t2 hover:text-t1 hover:bg-s2', ]; $cls = $base . ' ' . ($variants[$variant] ?? $variants['primary']); @endphp