Forms\Components\TextInput::make('password')->label('Password') ->placeholder('Password') ->type('password') ->live() ->suffixAction( Forms\Components\Actions\Action::make('toggle-password-visibility') ->icon('heroicon-o-eye') ->iconSize('md') ->action(function ($component) { if ($component->gettype('password')) { $component->type('text'); } else { $component->type('password'); } }) )