pianello-api/resources/views/components/base/dialog/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
621 B
PHP

@props(['as' => 'div'])
@aware(['size' => 'md'])
<{{ $as }}
{{ $attributes->class([
'w-[90%] mx-auto bg-white relative rounded-md shadow-md transition-[margin-top,transform] duration-[0.4s,0.3s] -mt-16 group-[.show]:mt-16 group-[.modal-static]:scale-[1.05] 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 }}>