Aplikasi Keuangan yang mengatur lalu lintas transaksi antara bank dan aplikasi internal Kampus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
685 B

@props([
'href' => 'javascript:void(0)',
'label' => '',
'theme' => null,
'icon' => null,
'iconConfig' => [
'width' => 24,
'height' => 24,
],
])
<a {{
$attributes->merge([
'class' => $theme ? 'link-'.$theme : '',
'href' => $href,
'wire:navigate' => ! in_array($href, ['#', 'javascript:void(0)', null]),
])
}}>
@if ($icon && ! str_contains($icon, 'svg'))
<span>@svg($icon, $iconConfig)</span>
@endif
@isset($slot)
{{ $slot }}
@endisset
@if (is_string($label))
<span>{{ $label }}</span>
@else
<span {{ $label->attributes }}>{{ $label }}</span>
@endif
</a>