© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
urbycoz

Make two sections appear side by side

I've got an infolist with two sections. I'd like them so appear 50% width each, side by side on the screen instead of one above the other.

Does Filament provide a built-in way to do this or do I need to add my own css?

Section::make('customer')
->collapsible()
->columns([
'sm' => 2,
'xl' => 4,
'2xl' => 8,
])
->schema([
TextEntry::make(''firstname)
->label('First name'),
TextEntry::make('lastname')
->label('Last name'),
]),
Section::make('address')
->collapsible()
->columns([
'sm' => 2,
'xl' => 4,
'2xl' => 8,
])
->schema([
TextEntry::make('address1')
->label('Address 1'),
TextEntry::make('address2')
->label('Address 2'),
]),
Solution
Use
->columns()
->columns()
on layout components to state how many cols there are.
Use
->columnSpan()
->columnSpan()
on field components to state how many cols they take up.
You can nest Group and Grid (and other layout) components as mush as you need. Not only to change visual layout, but also to collectively show/hide/readonly them.

In your case, make a
Grid::make(2)
Grid::make(2)
(2 is the default) and put your sections in its ->schema.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Need assistance with arranging two sections side by side in Filament PHP form
FilamentFFilament / ❓┊help
2y ago
Two sections per row
FilamentFFilament / ❓┊help
2w ago
sidebar margin appear when use $panel->topNavigation() with ->sidebarCollapsibleOnDesktop()
FilamentFFilament / ❓┊help
3y ago
How to display two different widgets in dashboard page side by side?
FilamentFFilament / ❓┊help
17mo ago