Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a password input or other different input types #23

Open
jpadilladev opened this issue Aug 24, 2019 · 1 comment
Open

Creating a password input or other different input types #23

jpadilladev opened this issue Aug 24, 2019 · 1 comment

Comments

@jpadilladev
Copy link

jpadilladev commented Aug 24, 2019

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

@StefanoMartella
Copy link

You can use type attribute like this:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants