@props([ 'id' => null, 'name' => null, 'label' => null, ]) @php $name = Str::of($name); $icon = $name->contains('.') ? $name->replace('.', '-') : "heroicon-{$name}"; // Remove `w-*` and `h-*` classes, because it applies only for icon $labelClasses = Str::replaceMatches('/(w-\w*)|(h-\w*)/', '', $attributes->get('class') ?? ''); @endphp @if(strlen($label ?? '') > 0)