File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -343,6 +343,20 @@ Input.propTypes = {
343343 */
344344 invalid : PropTypes . bool ,
345345
346+ /**
347+ * This attribute specifies that the user must fill in a value before
348+ * submitting a form. It cannot be used when the type attribute is hidden,
349+ * image, or a button type (submit, reset, or button). The :optional and
350+ * :required CSS pseudo-classes will be applied to the field as appropriate.
351+ * required is an HTML boolean attribute - it is enabled by a boolean or
352+ * 'required'. Alternative capitalizations `REQUIRED`
353+ * are also acccepted.
354+ */
355+ required : PropTypes . oneOfType ( [
356+ PropTypes . oneOf ( [ 'required' , 'REQUIRED' ] ) ,
357+ PropTypes . bool
358+ ] ) ,
359+
346360 /**
347361 * Set to true for a readonly input styled as plain text with the default
348362 * form field styling removed and the correct margins and padding preserved.
You can’t perform that action at this time.
0 commit comments