How to add icon to Password component?

UI Components for Vue
Post Reply
DougB
Posts: 14
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>

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 3 guests