Skip to content

Commit

Permalink
Allow JSX objects to be passed for labels in FormInput & InputButtons…
Browse files Browse the repository at this point in the history
… for more custom labels
  • Loading branch information
Ben Adams authored and Ben Adams committed Oct 20, 2023
1 parent d291416 commit f62a638
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/FormInput/FormInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const FormInput = (props) => {

FormInput.propTypes = {
className: PropTypes.string,
label: PropTypes.string,
label: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
type: PropTypes.string,
id: PropTypes.string,
name: PropTypes.string,
Expand Down
2 changes: 1 addition & 1 deletion src/components/InputButton/InputButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ InputButton.propTypes = {
icon: PropTypes.oneOfType([PropTypes.element, PropTypes.array]),
forwardedRef: PropTypes.object,
id: PropTypes.string,
label: PropTypes.string,
label: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
value: PropTypes.string,
name: PropTypes.string,
type: PropTypes.string,
Expand Down

0 comments on commit f62a638

Please sign in to comment.