@material-ui/core/#Slider JavaScript Examples
The following examples show how to use
@material-ui/core/#Slider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DevicesVolume.js From budgie-stream with MIT License | 6 votes |
DevicesVolume = (props) => {
const classes = useStyles();
const devices = props.devices;
return (
<List className={classes.root}>
{devices.map((device, index) => (
<ListItem key={device.name} alignItems="flex-start">
<ListItemText
className={classes.typo}
primary={device.name}
secondary={
<>
<Slider
value={devices[index].vol}
onChange={(event, value) =>
props.handleChange(device.name, value)
}
className={classes.slider}
/>
</>
}
/>
</ListItem>
))}
</List>
);
}