{{-- Children one under another, inside a pane. `gap` is a spacing token's name, `space25` … `space900` (docs/reference/m3/styles-supplement.md § Spacing), and none when left out or unknown. `align` places the children across the stack: `stretch` (the default), `start`, `center` or `end`. M3's layout has no arrangement component inside a pane — its "column" is a grid column — so this is the package's neutral one, beside `` and ``. It takes `as`, `hide-below` and `hide-from` like every layout component, and the caller's `class` and `style` land on it untouched. Drawn by resources/css/layout/stack.css. --}} @props([ 'as' => null, 'gap' => null, 'align' => null, 'hideBelow' => null, 'hideFrom' => null, ]) @php $layout = \NoNameWeb\LivewireMaterial\Support\Layout::class; $element = $layout::element($as); $attributes = $attributes->merge(array_filter([ 'data-md-stack' => true, 'data-md-gap' => $layout::spacing($gap), 'data-md-align' => $layout::choice($align, ['stretch', 'start', 'center', 'end']), ] + $layout::visibility($hideBelow, $hideFrom), fn ($value): bool => $value !== null)); @endphp <{{ $element }} {{ $attributes }}>{{ $slot }}