Skip to content

Commit cfe885e

Browse files
simplify tabs trigger usage
1 parent 61d0d7b commit cfe885e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

resources/views/components/tabs/trigger.blade.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
@props([
2-
'id' => '',
32
'value' => '',
4-
'htmlFor' => '',
53
'checked' => false,
64
])
75

86
<div>
97
<x-radio-group.item
10-
:$id
8+
:id=$value
119
:$value
1210
:$checked
1311
class="peer sr-only"
1412
/>
1513

1614
<x-label
17-
:$htmlFor
15+
:htmlFor=$value
1816
{{ $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') }}
1917
>
2018
{{ $slot }}

0 commit comments

Comments
 (0)