sackey 6b878bb0a0
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
Initial commit
2025-09-12 16:19:56 +00:00

18 lines
393 B
PHP

@pure
@props([
'container' => null,
])
@php
$classes = Flux::classes('[grid-area:main]')
->add('p-6 lg:p-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>