Fix label required

This commit is contained in:
philipp lang 2024-10-17 22:24:58 +02:00
parent 0934297698
commit 217e82bd44
1 changed files with 1 additions and 1 deletions
app/View/Form

View File

@ -21,7 +21,7 @@ class Label extends Component
<span class="font-semibold leading-none text-gray-400 group-[.size-default]:text-sm group-[.size-sm]:text-xs"> <span class="font-semibold leading-none text-gray-400 group-[.size-default]:text-sm group-[.size-sm]:text-xs">
{{ $slot }} {{ $slot }}
@if ($required) @if ($required)
<span x-if="required" class="text-red-800">&nbsp;*</span> <span class="text-red-800">&nbsp;*</span>
@endif @endif
</span> </span>
HTML; HTML;