How to make TextInput to allow only numbers without using numeric()

Currently when using TextInput::numeric(), the input gonna be type="number"

TextInput::make('zipcode__c')
    ->label('ZIP Code ')
    ->minLength(4)
    ->maxLength(10)
    ->numeric()


By using numeric the minLength and maxLength no longer works. And it also allows decimal values.
Was this page helpful?