© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago
Mouse0270

TextInput min/maxValues not being set

When trying to use the min and max values on a TextInput, it appears they are never set

TextInput::make('padding_top')
  ->label('Padding Top')
  ->numeric()
  ->minValue(-48)
  ->maxValue(48)
  ->step(1)
  ->default(0)
  ->suffix(fn ($state) => $state ? "$state" : "0")
  ->live()
TextInput::make('padding_top')
  ->label('Padding Top')
  ->numeric()
  ->minValue(-48)
  ->maxValue(48)
  ->step(1)
  ->default(0)
  ->suffix(fn ($state) => $state ? "$state" : "0")
  ->live()

I was trying to find a work around to Slider not working but it also appears taht the TextInput min and max values do not work either. Am I do something wrong? This is basically coped from the docs: https://filamentphp.com/docs/4.x/forms/text-input#size-validation

The user is basically able to enter any number they want for example I moved the number all the way down to -128
Text input - Forms - Filament
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

Set min value dinamically
FilamentFFilament / ❓┊help
3y ago
Select input value not being set
FilamentFFilament / ❓┊help
2y ago
Notification icon colour not being set
FilamentFFilament / ❓┊help
3y ago