carbon-web-components
carbon-web-components copied to clipboard
[Question]: How to create password-Input in Web Components?
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
- [X] I agree to follow this project's Code of Conduct
@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
