2021-04-27 14:52:54 +00:00
|
|
|
import React from "react"
|
|
|
|
import Style from "./Slider.module.css"
|
|
|
|
import classNames from "classnames"
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A slider that allows to select a numeric value in a range.
|
|
|
|
*
|
2021-05-18 14:57:43 +00:00
|
|
|
* Custom styling only works on Firefox!
|
2021-04-27 14:52:54 +00:00
|
|
|
*
|
|
|
|
* @param className - Additional class(es) to add to the element.
|
|
|
|
* @param props - Additional props to pass to the element.
|
|
|
|
* @returns {JSX.Element}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
export default function Slider({ className, ...props }) {
|
|
|
|
return (
|
|
|
|
<input
|
|
|
|
type={"range"}
|
|
|
|
className={classNames(Style.Slider, className)} {...props}
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|