pianello-api/resources/views/components/base/slideover/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

12 lines
588 B
PHP

@props(['as' => 'div'])
@aware(['size' => 'md'])
<{{ $as }}
{{ $attributes->class([
'w-[90%] ml-auto h-screen flex flex-col bg-white relative shadow-md transition-[margin-right] duration-[0.6s] -mr-[100%] group-[.show]:mr-0 dark:bg-darkmode-600',
$size == 'md' ? 'sm:w-[460px]' : null,
$size == 'sm' ? 'sm:w-[300px]' : null,
$size == 'lg' ? 'sm:w-[600px]' : null,
$size == 'xl' ? 'sm:w-[600px] lg:w-[900px]' : null,
])->merge($attributes->whereDoesntStartWith('class')->getAttributes()) }}
>{{ $slot }}</{{ $as }}>