Skip to content

Commit f3e04ad

Browse files
committed
Make docstrings consistent
1 parent 9e1f878 commit f3e04ad

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/input/Textarea.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,13 @@ Textarea.propTypes = {
175175
]),
176176

177177
/**
178-
* Indicates whether this element is required to fill out or not.
178+
* This attribute specifies that the user must fill in a value before
179+
* submitting a form. It cannot be used when the type attribute is hidden,
180+
* image, or a button type (submit, reset, or button). The :optional and
181+
* :required CSS pseudo-classes will be applied to the field as appropriate.
182+
* required is an HTML boolean attribute - it is enabled by a boolean or
183+
* 'required'. Alternative capitalizations `REQUIRED`
184+
* are also acccepted.
179185
*/
180186
required: PropTypes.oneOfType([
181187
PropTypes.oneOf(['required', 'REQUIRED']),

0 commit comments

Comments
 (0)