@props([
    'group' => [
        'class' => null,
    ],
    'id' => null,
    'label' => null,
    'type' => 'radio',
    'switch' => false,
    'hint' => '',
])


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


<x-bs-form.group class="{{ $group['class'] }}">
    <div class="option" {{ $switch ? "data-switch=true" : "" }}>
        <input {{ $attributes }} {{ $id  ? "id=$id" : "" }} type="{{$type}}">
        <x-bs-form.label :label=$label :for="$id" :hint=$hint />
    </div>
</x-bs-form.group>