How to add icon to Password component?

UI Components for Vue
Post Reply
DougB
Posts: 18
Joined: 07 Jun 2021, 19:09

28 Jul 2022, 00:45

How do I add the pi-lock icon to the left of the Password component like I do with standard '? Nothing I've tried works.

I want the functionality with the 'eye' icon to be able to show the password.

This is what I want, but with the 'eye' icon functionality using the Password component:

Code: Select all

<span class="p-input-icon-left">
  <i class="pi pi-lock" />
  <InputText class="w-full" type="password" autocomplete="off" placeholder="Password" />
</span>

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

11 Aug 2022, 14:20

Password does it for all this or you could customize this yourself, like adding a click event and changing input's type dynamically.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests