@props([
    'group' => [
        'class' => null,
    ],
    'id' => null,
    'label' => null,
    'required' => '',
    'hint' => '',
    'value' => null,
    'extraattributes' => ''
])


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


<x-bs-form.group class="{{ $group['class'] }}">
    <x-bs-form.label :label=$label :for="$id" />
    @if (!empty($hint))
        <x-bs-form.hint class="mb-2 mt-0">{!! $hint !!}</x-bs-form.hint>
    @endif
    <textarea {{ $required }} {{ $attributes }} {!! $extraattributes !!} {{ $id ? "id=$id" : "" }}>{{ $value ?? $slot }}</textarea>
</x-bs-form.group>