mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
extra: add required label markup
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
@if ($field->label)
|
||||
<x-filament::label :for="$field->id">
|
||||
{{ __($field->label) }}
|
||||
@if (array_key_exists('required', $field->extraAttributes))
|
||||
<sup class="text-lg font-semibold text-red-700">*</sup>
|
||||
@endif
|
||||
</x-filament::label>
|
||||
@endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user