Div Component

Компонент Div просто выводит тег div c возможностью указывать вложенные компоненты и добавлять атрибуты.

# Class

make(iterable $components)
use MoonShine\Components\Layout\Div;
 
//...
 
public function components(): array
{
return [
Div::make([])
];
}
 
//...

# Blade

<x-moonshine::layout.div></x-moonshine::layout.div>