© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
3 replies
mathieu

Setting the width of a custom Register page

What I am trying to do:
I want to increase the width of the register container on a custom Register page

What I did:
I extended
Filament\Auth\Pages\Register
Filament\Auth\Pages\Register
with a child
App\Filament\Pages\Auth\Register
App\Filament\Pages\Auth\Register
page.

I modified the
public function form(Schema $schema): Schema
public function form(Schema $schema): Schema
in order to add a Wizard for registration.

In my panel provider I added the path to my custom class:
->registration(\App\Filament\Pages\Auth\Register::class);
->registration(\App\Filament\Pages\Auth\Register::class);


The Wizard registration is working fine. However with the default width of a SimplePage, it does not look really great and I would like to increase the width of the container of the Wizard.

I tried to override the
$maxWidth
$maxWidth
property in my custom Register page with:
protected Width | null | string $maxWidth = Width::FiveExtraLarge;
protected Width | null | string $maxWidth = Width::FiveExtraLarge;
but it doesn't seem to have any effect.

I also tried targeting CSS elements but I couldn't find classes that could only apply to the register page. The surrounding container is:
<main class="fi-simple-main fi-width-lg">
<main class="fi-simple-main fi-width-lg">


What could I do to increase the width of this container only on the Register page?

Thank you!
Solution
The solution was to override the
$maxContentWidth
$maxContentWidth
property like so:

protected Width|string|null $maxContentWidth = Width::FiveExtraLarge;
protected Width|string|null $maxContentWidth = Width::FiveExtraLarge;
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

Custom register page (register link on login page)
FilamentFFilament / ❓┊help
2y ago
Register Hooks in a custom page
FilamentFFilament / ❓┊help
2y ago
Custom login / register -like page
FilamentFFilament / ❓┊help
3y ago
Occupy the entire width of the page
FilamentFFilament / ❓┊help
3y ago