Skip to content

Commit

Permalink
Fix SliderValueLabel propTypes
Browse files Browse the repository at this point in the history
Fixes mui#44130
  • Loading branch information
joshkel committed Oct 16, 2024
1 parent 1b40ca5 commit 100a58a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/mui-material/src/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ Slider.propTypes /* remove-proptypes */ = {
className: PropTypes.string,
open: PropTypes.bool,
style: PropTypes.object,
value: PropTypes.number,
value: PropTypes.node,
valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on']),
}),
]),
Expand Down Expand Up @@ -1094,7 +1094,7 @@ Slider.propTypes /* remove-proptypes */ = {
className: PropTypes.string,
open: PropTypes.bool,
style: PropTypes.object,
value: PropTypes.number,
value: PropTypes.node,
valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on']),
}),
]),
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Slider/SliderValueLabel.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface SliderValueLabelProps {
* The value of the slider.
* For ranged sliders, provide an array with two values.
*/
value: number;
value: React.ReactNode;
/**
* Controls when the value label is displayed:
*
Expand Down

0 comments on commit 100a58a

Please sign in to comment.