pianello-api/resources/views/components/base/tab/index.blade.php
Ale Gallo 96c0bfb8ce Committing laravel (part 5)
committing blade templating files and components that might come in handy
2023-11-10 16:41:20 +01:00

17 lines
489 B
PHP

@props(['id' => null, 'fullWidth' => true, 'selected' => false])
@aware(['variant' => 'tabs'])
@once
@push('vendors')
@vite('resources/js/vendor/tab/index.js')
@endpush
@endonce
<li
id="{{ $id }}"
data-tw-merge
role="presentation"
{{ $attributes->class(merge(['focus-visible:outline-none', $fullWidth ? 'flex-1' : null, $variant == 'tabs' ? '-mb-px' : null]))->merge($attributes->whereDoesntStartWith('class')->getAttributes()) }}
>
{{ $slot }}
</li>