How to use the @material-ui/lab/Slider.default function in @material-ui/lab

To help you get started, we’ve selected a few @material-ui/lab examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github BlueBrain / Brayns / js / apps / viewer / src / common / components / fields / numeric-field.tsx View on Github external
import {isNumber, isString} from 'lodash';

import {PropTypes} from '@material-ui/core';
import {
    createStyles,
    Theme,
    withStyles,
    WithStyles
} from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
import Typography from '@material-ui/core/Typography';


// TODO: Import properly after https://github.com/mui-org/material-ui/issues/11736 is fixed
// tslint:disable-next-line: no-var-requires
const Slider = require('@material-ui/lab/Slider').default;


const styles = (theme: Theme) => createStyles({
    root: {
        display: 'inline-flex',
        flexDirection: 'column',
        minWidth: 0
    },
    slider: {
        // TODO: Remove when https://github.com/mui-org/material-ui/issues/13455 is fixed
        padding: 24,
        margin: -24,
        overflow: 'hidden',
        boxSizing: 'content-box'
    },
    marginNormal: {