Skip to content

Commit

Permalink
export SliderValueLabelProps
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Jan 3, 2023
1 parent 4de0741 commit 886803e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/data/material/components/slider/CustomizedSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ function ValueLabelComponent(props) {

ValueLabelComponent.propTypes = {
children: PropTypes.element.isRequired,
/**
* The value of the slider.
* For ranged sliders, provide an array with two values.
*/
value: PropTypes.number.isRequired,
};

Expand Down
2 changes: 2 additions & 0 deletions packages/mui-material/src/Slider/Slider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export type SliderTypeMap<
defaultComponent: D;
}>;

export { SliderValueLabelProps };

type SliderRootProps = NonNullable<SliderTypeMap['props']['componentsProps']>['root'];
type SliderMarkProps = NonNullable<SliderTypeMap['props']['componentsProps']>['mark'];
type SliderMarkLabelProps = NonNullable<SliderTypeMap['props']['componentsProps']>['markLabel'];
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
@@ -1,5 +1,5 @@
export interface SliderValueLabelProps {
children?: React.ReactElement;
children: React.ReactElement;
className?: string;
style?: React.CSSProperties;
/**
Expand Down

0 comments on commit 886803e

Please sign in to comment.