Divider

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

# Basics

To divide into areas, you can use the Divider decorator

use MoonShine\Decorations\Divider;
 
//...
public function fields(): array
{
return [
//...
Divider::make(),
//...
];
}
//...

# Label

You can use text as a separator, for this you need to pass it to the make() method

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

The centered() method allows you to center the text

use MoonShine\Decorations\Divider;
 
//...
public function fields(): array
{
return [
//...
Divider::make('Divider')
->centered(),
//...
];
}
//...