import React from 'react' import type { SliderProps } from './slider' import { classNames } from '../../utils/classNames' import styles from './slider.module.scss' export type Props = SliderProps & { onChange?: (event: React.ChangeEvent) => void } const Slider = ({ min = 0, max = 100, value = 0, step, disabled, color, background, thumb, id, className, onChange, ...rest }: Props) => { const classes = classNames([ styles.slider, className ]) const styleVariables = { ...(color && { '--w-slider-color': color }), ...(background && { '--w-slider-background': background }), ...(thumb && { '--w-slider-thumb': thumb }) } as React.CSSProperties return ( ) } export default Slider