pianello-api/resources/views/components/base/tab/panel.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
695 B
PHP

@props(['id' => null, 'selected' => false])
<x-base.transition
id="{{ $id }}"
role="tabpanel"
aria-labelledby="{{ uncamelize($id, '-') }}-tab"
selector=".active"
enter="transition-[visibility,opacity] ease-linear duration-150"
enterFrom="!p-0 !h-0 overflow-hidden invisible opacity-0"
enterTo="visible opacity-100"
leave="transition-[visibility,opacity] ease-linear duration-150"
leaveFrom="visible opacity-100"
leaveTo="!p-0 !h-0 overflow-hidden invisible opacity-0"
{{ $attributes->class(merge(['tab-pane', $selected ? 'active' : null]))->merge($attributes->whereDoesntStartWith('class')->getAttributes()) }}
>
{{ $slot }}
</x-base.transition>