react-virtual-keyboard icon indicating copy to clipboard operation
react-virtual-keyboard copied to clipboard

Creating a password input or other different input types

Open jpadilladev opened this issue 6 years ago • 1 comments

I´m trying to change the type of the input created by the component. It is possible to create an input of type "password" or any other types?

Like this:

 <Keyboard 
        value={this.state.value}
        name='keyboard'
        options={{
          type: "input",
          inputType: "password"
    }}
[...]

Thanks

jpadilladev avatar Aug 24 '19 14:08 jpadilladev

You can use type attribute like this:

<Keyboard
   value={this.state.value}
   type='password'
   options={{
       [...]     
   }}
/>

StefanoMartella avatar Oct 14 '19 14:10 StefanoMartella