Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit a7b7bb0

Browse files
authored
feat: InputDateRange label as a Component
Added the possibility to add the `label` prop as a Component
1 parent 4d24ea8 commit a7b7bb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/InputRangeField/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class InputRangeField extends Component {
5151

5252
InputRangeField.propTypes = {
5353
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
54-
label: PropTypes.string.isRequired,
54+
label: PropTypes.oneOfType([PropTypes.element, PropTypes.node]).isRequired,
5555
placeholder: PropTypes.string,
5656
styles: PropTypes.shape({
5757
inputRange: PropTypes.string,

0 commit comments

Comments
 (0)