Ionic label and input with right-icon

I am trying to achieve something like this

Can someone tell me how to do this I tried the following which didn’t work as I want it
<ion-item> <ion-label stacked>Password</ion-label> <ion-input type="password"> </ion-input> <ion-icon name="ios-eye-outline" item-right></ion-icon> </ion-item>
the Icon appears on the right but not on the right of the ion-input