stripCharacters() method not found on TextInput

hello based on the documentaion we can use :

use Filament\Forms\Components\TextInput;
use Filament\Support\RawJs;
 
TextInput::make('amount')
    ->mask(RawJs::make('$money($input)'))
    ->stripCharacters(',')
    ->numeric()


but this code throws this error:

BadMethodCallException
PHP 8.2.4
Laravel 10.30.1
Method Filament\Forms\Components\TextInput::stripCharacters does not exist.
Was this page helpful?