Skip to content

Commit 9c58d60

Browse files
committed
support required with radio button
1 parent 3259819 commit 9c58d60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/views/components/button/radio.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
'type' => 'radio',
66
'icon' => null,
77
'iconRight' => null,
8+
'required' => false,
89
])
910

1011
@php
@@ -25,7 +26,7 @@
2526
<x-slot:before>
2627
<input type="{{ $type }}" {{ $input }}
2728
class="peer/input pointer-events-none absolute left-0 top-0 size-full appearance-none opacity-0"
28-
@checked($checked) @disabled($disabled)>
29+
@checked($checked) @disabled($disabled) @required($required)>
2930
</x-slot:before>
3031

3132
@if ($icon?->hasActualContent())

0 commit comments

Comments
 (0)