password in lightning component

How to use Password type field in lightning component

Lightning Component
  • In this post we can see how to use input password type field in lightning component
  • ui:inputSecret component represents a password field, which is rendered as an HTML input tag of type password.

Sample code for password type field:

sample.cmp

<aura:component >
   <ui:inputSecret aura:id="pwd" label="Password " class="" value="" maxlength="10" placeholder="Enter upto 10 character" required="false" size="20"/>
</aura:component>

Output-:

password type field
Output

 

for full reference :- ui:inputSecret

Like our facebook page for new post updates.?

Leave a Reply