Skip to content

Commit

Permalink
Add more information for label
Browse files Browse the repository at this point in the history
  • Loading branch information
badiuoanaalexandra committed Apr 8, 2024
1 parent 29f9feb commit 3ee4c9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/control-range/control-range.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ ControlRange.propTypes = {
onChange: PropTypes.func.isRequired,
/** Accepts an array of numbers, where each number matches a draggable thumb. */
value: PropTypes.array,
/** Value passed to the label element. */
/** Value passed to the label element. Value can be string or ReactNode. */
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
/** If provided the text, "(optional)" is appended to the value of the label element. */
optional: PropTypes.bool,
Expand Down
2 changes: 1 addition & 1 deletion src/components/control-text/control-text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ ControlText.propTypes = {
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
/** Type attribute to override the existing default of 'text' */
type: PropTypes.string,
/** Label for the control. */
/** Label for the control. Label can be string or ReactNode. */
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
/** Enable/Disable browser enabled autocorrect or spelling suggestions from the element. */
noAuto: PropTypes.bool,
Expand Down
2 changes: 1 addition & 1 deletion src/components/control-textarea/control-textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ ControlTextarea.propTypes = {
* Passed two arguments: the new value, and the `id` prop.
*/
onChange: PropTypes.func.isRequired,
/** Label for the control. */
/** Label for the control. Label can be string or ReactNode. */
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
/** If `true`, autocorrect and spelling suggestions will be disabled. */
noAuto: PropTypes.bool,
Expand Down

0 comments on commit 3ee4c9f

Please sign in to comment.