nikgraf / belle

Configurable React Components with great UX

Home Page:http://nikgraf.github.io/belle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TextInput type password (brainstorming)

andreychev opened this issue · comments

A work around could be using controlled TestInput component and saving characters of password on each onUpdate and showing only some place holder in component.

Though this is not good fix, ideally we should add a prop 'type' to component and be able to handle it for values like number, password, email.

What about a dedicated SecretInput or PasswordInput component? I think it would be great to do the same for NumberInput & EmailInput.

Yeh, might be we can think about using for these, I do not expect emails, pwds and numeric inputs to span multiple lines