File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
resources/views/components/tabs Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
@props ([
2
- ' id' => ' ' ,
3
2
' value' => ' ' ,
4
- ' htmlFor' => ' ' ,
5
3
' checked' => false ,
6
4
] )
7
5
8
6
<div >
9
7
<x-radio-group .item
10
- :$id
8
+ :id = $value
11
9
:$value
12
10
:$checked
13
11
class =" peer sr-only"
14
12
/>
15
13
16
14
<x-label
17
- :$ htmlFor
15
+ :htmlFor = $value
18
16
{{ $attributes -> twMerge (' inline-flex w-full items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all cursor-pointer peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 peer-checked:bg-background peer-checked:text-foreground peer-checked:shadow' ) } }
19
17
>
20
18
{{ $slot } }
You can’t perform that action at this time.
0 commit comments