@props([
    'title' => null
])

@php
    $attributes = $attributes
        ->merge([
        ])
        ->class([
            'accordion__item-header'
        ]);
@endphp

@if ($title || !$slot->isEmpty())
<summary {{ $attributes }}> 
    {!! $title ?? $slot !!}
    <span class="accordion__item-icon">
        <x-bs-icon
            icon="chevron-down"
            size="md"
        />
    </span>
</summary>
@endif