sackey e839d40a99
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
Initial commit
2025-07-30 17:15:50 +00:00

16 lines
393 B
PHP

@props([
'container' => null,
])
@php
$classes = Flux::classes('[grid-area:main]')
->add('p-10 lg:p-10 mt-8')
->add('[[data-flux-container]_&]:px-0') // If there is a wrapping container, let IT handle the x padding...
->add($container ? 'mx-auto w-full [:where(&)]:max-w-7xl' : '')
;
@endphp
<div {{ $attributes->class($classes) }} data-flux-main>
{{ $slot }}
</div>