import React from 'react' import * as Slider from '@radix-ui/react-slider' import classes from './styles.module.css' const { SliderRoot, SliderTrack, SliderRange } = classes const SliderDemo: React.FC<{ range: [number, number] value: number onValueChange?: (value: number) => void onValueCommit?: (value: number) => void style?: React.CSSProperties }> = ({ range, value, onValueChange, onValueCommit, style }) => (
{ onValueChange?.(value) }} onValueCommit={([value]: number[]) => { onValueCommit?.(value) }} >
) export default SliderDemo