Is it possible to style all Field
s inside Grid
in Material UI?
I already know how to do it in css but I can't find how to do this in jss
I've tried this but not working:
const styles = {
shopForm: {
textAlign: 'center',
Field: {
width: '60%'
}
}
}
how should I change styles
?
is this type of styling possible in jss?
in css used to do this :
.shopForm Field
{...}
I'm using MUI
<Grid item lg={4} className={classes.shopForm}>
<Field
name="name"
type="text"
label="name"
component={TextField}
/>
<Field
name="plaque"
type="text"
label="plaque"
component={TextField}
/>
<Field
name="unit"
type="text"
label="unit"
component={TextField}
/>
<Field
name="text"
type="text"
label="text"
component={TextField}
multiline
row={3}
/>
</Grid>