12 lines
224 B
PHP
12 lines
224 B
PHP
@props([
|
|
'link' => '#',
|
|
'type' => 'primary',
|
|
'tag' => 'a',
|
|
])
|
|
|
|
<{{ $tag }} {{ $attributes->merge([
|
|
'class' => 'btn btn-' . $type
|
|
] + ($tag == 'a' ? ['href' => $link] : [])) }}>
|
|
{{ $slot }}
|
|
</{{ $tag }}>
|