code4romania / taskforce-fe-components

reusable frontend components for taskforce projects
https://taskforce-fe-components.now.sh
Mozilla Public License 2.0
11 stars 34 forks source link

Extend props on Input component #159

Closed Dima000 closed 4 years ago

Dima000 commented 4 years ago

The Input component requires extra props to work as desired for phone validation. Specifically maxlength, minlength, title, pattern need to be added as props to support and enhance the functionality of type="tel" input. These new props are going to be used in https://github.com/code4romania/stam-acasa/pull/277

Codepen Example

https://codepen.io/dima000/pen/eYpdRmZ

Preview

The end result will look like this image

Dima000 commented 4 years ago

I will submit a PR shortly