mdc-react
Version:
Material Components for the web implemented in React
23 lines (19 loc) • 469 B
JSX
import { forwardRef } from 'react';
import { cssClasses } from './constants';
const Input = forwardRef(({
value,
...props
}, ref) => {
return (
<input
ref={ref}
className={cssClasses.INPUT}
type="range"
value={Math.round(value)}
onChange={Function.prototype}
{...props}
/>
);
});
Input.displayName = 'MDCSliderInput';
export default Input;