© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
16 replies
Kuldeep

Same width text fields in the form

How can I make the first, last name fields same 50% width in a single row?

My code is like this:
Forms\Components\TextInput::make('first_name')
    ->label('First Name')
    ->required()
    ->columnSpan(4),
Forms\Components\TextInput::make('last_name')
    ->label('Last Name')
    ->required()
    ->columnSpan(8),
Forms\Components\TextInput::make('first_name')
    ->label('First Name')
    ->required()
    ->columnSpan(4),
Forms\Components\TextInput::make('last_name')
    ->label('Last Name')
    ->required()
    ->columnSpan(8),
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom text form fields as array
FilamentFFilament / ❓┊help
3y ago
form with multiple fields using the same model property
FilamentFFilament / ❓┊help
13mo ago
Different Form in the same resource
FilamentFFilament / ❓┊help
2y ago
Form Label Width
FilamentFFilament / ❓┊help
11mo ago