I am building a webpage with React and Material-UI. I have a TextField element and I want to remove the arrow buttons - if I were using CSS I would use the following code:
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
But I want to style the page using CSS in JS where I use export default withStyles(styles)(FormPersonalDetails)
. How do I do this?
`
const styles = theme => ({
number: {
// styling code goes here//
}
});
render() function:
const { classes } = this.props;
return (
<TextField className={classes.number} />
)