DEV Community

JohnDivam
JohnDivam

Posted on • Edited on

Groups in Filament v4

you can use it with any layout component. For example, you could use a Group component which has no styling associated with it:

use Filament\Schemas\Components\Section;


public static function configure(Schema $schema): Schema
    {
        return $schema
            ->components([
                Section::make()
                  ->schema([
                    TextInput::make('test1'),
                ])->columnSpan(['lg' => 2]),
                Section::make()
                  ->schema([
                    TextInput::make('test2'),
                ])->columnSpan(['lg' => 1]),
            ])->columns(3);
    }
Enter fullscreen mode Exit fullscreen mode

Top comments (0)