Skip to content

Commit

Permalink
add time as possible type for Input (#92)
Browse files Browse the repository at this point in the history
I was trying to use the time input like described [here (on MDN)](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time) but it gave me errors.
  • Loading branch information
fritzvd authored and couds committed Oct 9, 2018
1 parent d1fa20c commit c239b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/form/components/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Input.propTypes = {
...modifiers.propTypes,
className: PropTypes.string,
style: PropTypes.shape({}),
type: PropTypes.oneOf(['text', 'email', 'tel', 'password', 'number', 'search', 'color', 'date']),
type: PropTypes.oneOf(['text', 'email', 'tel', 'password', 'number', 'search', 'color', 'date', 'time']),
size: PropTypes.oneOf(['small', 'medium', 'large']),
color: PropTypes.oneOf(colors),
readOnly: PropTypes.bool,
Expand Down

0 comments on commit c239b1b

Please sign in to comment.