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

<div {{$attributes->class("relative pt-4 px-2 pb-2 border border-gray-300 rounded-md")}}>
    @if($label)
        <div class="absolute -top-3 left-2 bg-white px-2 text-gray-600">{{$label}}</div>
    @endif
    {{$slot}}
</div>
