We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c58d60 commit 861fde1Copy full SHA for 861fde1
resources/views/components/button/radio.blade.php
@@ -5,6 +5,7 @@
5
'type' => 'radio',
6
'icon' => null,
7
'iconRight' => null,
8
+ 'content' => null,
9
'required' => false,
10
])
11
@@ -33,7 +34,11 @@ class="peer/input pointer-events-none absolute left-0 top-0 size-full appearance
33
34
<x-slot:icon :attributes="$icon?->attributes"> {{ $icon }} </x-slot:icon>
35
@endif
36
- {{ $slot }}
37
+ @if ($content?->hasActualContent())
38
+ <x-slot:content :attributes="$content?->attributes"> {{ $content }} </x-slot:content>
39
+ @else
40
+ {{ $slot }}
41
+ @endif
42
43
@if ($iconRight?->hasActualContent())
44
<x-slot:icon-right :attributes="$iconRight?->attributes"> {{ $iconRight }} </x-slot:icon-right>
0 commit comments