@props([
    'open' => false,
    'title' => null
])

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

<details {{ $attributes }} @if ($open) open @endif>
    <x-bs-accordion.header :title="$title">
        {{ $title }}
    </x-bs-accordion.header>
    <x-bs-accordion.content>
        {{ $slot }}
    </x-bs-accordion.content>
</details>