Block

You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.

Substrate with header for form features

use MoonShine\Decorations\Block;
 
//...
public function fields(): array
{
return [
Block::make('Block title', [
Text::make('Name', 'first_name'),
]),
];
}
//...

If you don't need a header

use MoonShine\Decorations\Block;
 
//...
public function fields(): array
{
return [
Block::make([
Text::make('Name', 'first_name'),
]),
];
}
//...