Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Slider] Replace SliderUnstyled with useSlider hook #35770

Merged
2 changes: 1 addition & 1 deletion docs/pages/material-ui/api/slider.json
Expand Up @@ -137,7 +137,7 @@
"spread": true,
"forwardsRefTo": "HTMLSpanElement",
"filename": "/packages/mui-material/src/Slider/Slider.js",
"inheritance": { "component": "SliderUnstyled", "pathname": "/base/api/slider-unstyled/" },
"inheritance": null,
"demos": "<ul><li><a href=\"/material-ui/react-slider/\">Slider</a></li></ul>",
"cssComponent": false
}
3 changes: 1 addition & 2 deletions packages/mui-material/src/Slider/Slider.d.ts
Expand Up @@ -84,7 +84,7 @@ export type SliderTypeMap<
defaultComponent: D;
}>;

export { SliderValueLabelProps } from '@mui/base/SliderUnstyled';
export { SliderValueLabelProps };

type SliderRootProps = NonNullable<SliderTypeMap['props']['componentsProps']>['root'];
type SliderMarkProps = NonNullable<SliderTypeMap['props']['componentsProps']>['mark'];
Expand All @@ -110,7 +110,6 @@ export declare const SliderValueLabel: React.FC<SliderValueLabelProps>;
* API:
*
* - [Slider API](https://mui.com/material-ui/api/slider/)
* - inherits [SliderUnstyled API](https://mui.com/base/api/slider-unstyled/)
*/
declare const Slider: ExtendSliderUnstyled<SliderTypeMap>;

Expand Down