mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
18 lines
394 B
PHP
18 lines
394 B
PHP
@blaze
|
|
|
|
@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>
|