How to add icon to Password component?

UI Components for Vue
Post Reply
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" />

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests