Tabs

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

You can add tabs and group fields in the form for convenience

use MoonShine\Decorations\Block;
use MoonShine\Decorations\Tabs;
use MoonShine\Decorations\Tab;
use MoonShine\Fields\Text;
 
//...
public function fields(): array
{
return [
Block::make('Main', [
Tabs::make([
Tab::make('Seo', [
Text::make('Seo title')
->fieldContainer(false),
//...
]),
Tab::make('Categories', [
//...
])
])
]),
];
}
//...