This repository was archived by the owner on Mar 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,14 @@ type FormStyle = {|
28
28
+ placeholder ? : string ,
29
29
+ name ? : string ,
30
30
+ value ? : string | number ,
31
+ + min ? : string | number ,
32
+ + max ? : string | number ,
33
+ + minlength ? : string | number ,
34
+ + maxlength ? : string | number ,
31
35
+ disabled ? : boolean ,
32
36
+ readOnly ? : boolean ,
33
37
+ autoFocus ? : boolean ,
38
+ + required ? : boolean ,
34
39
+ checked ? : boolean ,
35
40
| } ;
36
41
@@ -67,6 +72,10 @@ function FormInput(props: Props): React.Node {
67
72
error,
68
73
placeholder,
69
74
value,
75
+ min,
76
+ max,
77
+ minlength,
78
+ maxlength,
70
79
checked,
71
80
onChange,
72
81
onMouseEnter,
@@ -84,6 +93,7 @@ function FormInput(props: Props): React.Node {
84
93
disabled,
85
94
readOnly,
86
95
autoFocus,
96
+ required,
87
97
label,
88
98
} = props ;
89
99
const type = props . type || "text" ;
@@ -108,9 +118,14 @@ function FormInput(props: Props): React.Node {
108
118
type,
109
119
placeholder,
110
120
value,
121
+ min,
122
+ max,
123
+ minlength,
124
+ maxlength,
111
125
disabled,
112
126
readOnly,
113
127
autoFocus,
128
+ required,
114
129
onChange,
115
130
onMouseEnter,
116
131
onMouseLeave,
You can’t perform that action at this time.
0 commit comments