Skip to content

Commit

Permalink
add explanation to control-label
Browse files Browse the repository at this point in the history
  • Loading branch information
badiuoanaalexandra committed Apr 9, 2024
1 parent 3ee4c9f commit 2dfbb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/control-label/control-label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function ControlLabel({
ControlLabel.propTypes = {
/** Value should match the identifying id of the input element. */
id: PropTypes.string.isRequired,
/** Label text */
/** Label text. Value can be string or ReactNode. */
text: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
/** Additional content to provide aligned to the right of the label. */
aside: PropTypes.node,
Expand Down

0 comments on commit 2dfbb5e

Please sign in to comment.