Skip to content

Commit

Permalink
[Slider] Replace SliderUnstyled with useSlider hook (#35770)
Browse files Browse the repository at this point in the history
Signed-off-by: Zeeshan Tamboli <zeeshan.tamboli@gmail.com>
  • Loading branch information
ZeeshanTamboli committed Jan 12, 2023
1 parent 0486f4b commit 69edfae
Show file tree
Hide file tree
Showing 9 changed files with 393 additions and 93 deletions.
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

0 comments on commit 69edfae

Please sign in to comment.