Files
powerpoint-toolbox/node_modules/@fluentui/react-slider/lib/components/Slider/Slider.js
T
2025-03-07 19:22:02 +01:00

15 lines
692 B
JavaScript

import * as React from 'react';
import { useSlider_unstable } from './useSlider';
import { renderSlider_unstable } from './renderSlider';
import { useSliderStyles_unstable } from './useSliderStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* The Slider component allows users to quickly select a value by dragging a thumb across a rail.
*/ export const Slider = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useSlider_unstable(props, ref);
useSliderStyles_unstable(state);
useCustomStyleHook_unstable('useSliderStyles_unstable')(state);
return renderSlider_unstable(state);
});
Slider.displayName = 'Slider';