content: import React from 'react';
  import PropTypes from 'prop-types';
  import { withStyles } from '@material-ui/core/styles';
  import Slider from '@material-ui/lab/Slider';
  
  const styles = {
    root: {
      width: 300,
    },
    slider: {
      padding: '22px 0px',
    },
  };
  
  class StepSlider extends React.Component {
    state = {
      value: 3,
    };
  
    handleChange = (event, value) => {
      this.setState({ value });
    };
  
    render() {
      const { classes } = this.props;
      const { value } = this.state;
  
      return (
        <div className={classes.root}>
          <Slider
            className={classes.slider}
            value={value}
            min={0}
            max={6}
            step={1}
            onChange={this.handleChange}
          />
        </div>
      );
    }
  }
  
  StepSlider.propTypes = {
    classes: PropTypes.object.isRequired,
  };
  
  export default withStyles(styles)(StepSlider);
  