Components

Div Component

The Div component simply renders a div tag with the ability to specify nested components and add attributes.

Class

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

Blade

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