update
This commit is contained in:
@@ -52,21 +52,20 @@
|
||||
$variantClass = $variants[$variant ?? 'primary'] ?? $variants['primary'];
|
||||
$sizeClass = $sizes[$size ?? 'default'] ?? '';
|
||||
|
||||
$classes = "btn {$variantClass} {$sizeClass}";
|
||||
$classes = "btn d-flex align-items-center {$variantClass} {$sizeClass}";
|
||||
@endphp
|
||||
|
||||
@if($tag === 'a')
|
||||
<a href="{{ $href }}" {{ $attributes->merge(['class' => $classes]) }}>
|
||||
@if($icon)
|
||||
<i data-lucide="{{ $icon }}" class="me-1" style="height: 14px; width: 14px"></i>
|
||||
@endif
|
||||
{{ $slot }}
|
||||
</a>
|
||||
@else
|
||||
<button type="{{ $buttonType }}" {{ $attributes->merge(['class' => $classes]) }}>
|
||||
@if($icon)
|
||||
<i data-lucide="{{ $icon }}" class="me-1" style="height: 14px; width: 14px"></i>
|
||||
@endif
|
||||
{{ $slot }}
|
||||
</button>
|
||||
@endif
|
||||
@if($tag === 'a')
|
||||
<a href="{{ $href }}" {{ $attributes->merge(['class' => $classes]) }}>
|
||||
@if($icon)
|
||||
<i data-lucide="{{ $icon }}" style="height: 14px; width: 14px"></i>
|
||||
@endif
|
||||
@if($slot->isNotEmpty())<span class="ms-1">{{ $slot }}</span>@endif
|
||||
</a>
|
||||
@else
|
||||
<button type="{{ $buttonType }}" {{ $attributes->merge(['class' => $classes]) }}>
|
||||
@if($icon)
|
||||
<i data-lucide="{{ $icon }}" style="height: 14px; width: 14px"></i>
|
||||
@endif
|
||||
@if($slot->isNotEmpty())<span class="ms-1">{{ $slot }}</span>@endif
|
||||
</button>
|
||||
@endif
|
||||
Reference in New Issue
Block a user