carbon-web-components icon indicating copy to clipboard operation
carbon-web-components copied to clipboard

[Question]: How to create password-Input in Web Components?

Open cosmin-z opened this issue 2 years ago • 1 comments

Question for Carbon

Hi,

I'm trying to create a form with Carbon but the problem is, according to the documentation, in the website https://web-components.carbondesignsystem.com/?path=/story/components-input--default I can't find an input password field.

Can anyone help me figure out how to do it?

this is my code:

<bx-input placeholder="Inserisci password" size="lg" color-scheme="" type="password"  data-toggle-password visibility="true"  name="password" required {{#if messages.length}}invalid{{/if}}>
        <span class="customText bx--password-input" slot="label-text">Password</span>
</bx-input>

Thanks for your help.

Code of Conduct

cosmin-z avatar Sep 05 '22 07:09 cosmin-z

@cosmin-z the password input can be found under the Input story. you can set the input to be a password input using the Input type dropdown menu at the bottom

image

emyarod avatar Sep 13 '22 16:09 emyarod