{{-- Toggle/Switch Component - shadcn-style Usage: --}} @props([ 'label' => null, 'description' => null, 'disabled' => false, ]) only('class')->class(['flex items-center justify-between gap-4 cursor-pointer']) }}> @if($label || $description) @if($label) {{ $label }} @endif @if($description) {{ $description }} @endif @endif whereDoesntStartWith('class')->merge(['disabled' => $disabled]) }} class="sr-only peer" />
{{ $description }}