@props(['type' => 'primary', 'size' => null])

@php
    $classes = 'btn btn-' . $type;
    if ($size) {
        $classes .= ' btn-' . $size;
    }
@endphp

<button {{ $attributes->merge(['class' => $classes]) }}>
    {{ $slot }}
</button>