Skip to content

Commit 861fde1

Browse files
committed
drill content
1 parent 9c58d60 commit 861fde1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 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+
'content' => null,
89
'required' => false,
910
])
1011

@@ -33,7 +34,11 @@ class="peer/input pointer-events-none absolute left-0 top-0 size-full appearance
3334
<x-slot:icon :attributes="$icon?->attributes"> {{ $icon }} </x-slot:icon>
3435
@endif
3536

36-
{{ $slot }}
37+
@if ($content?->hasActualContent())
38+
<x-slot:content :attributes="$content?->attributes"> {{ $content }} </x-slot:content>
39+
@else
40+
{{ $slot }}
41+
@endif
3742

3843
@if ($iconRight?->hasActualContent())
3944
<x-slot:icon-right :attributes="$iconRight?->attributes"> {{ $iconRight }} </x-slot:icon-right>

0 commit comments

Comments
 (0)