In React material ui, I want to change font size of stepper label. How to acheive that?
function getSteps() {
return [
"OPTION 1",
"OPTION 2",
"OPTION 3"
"OPTION 4"
];
}
Perhaps you could add a custom css to your webpage :
.MuiStepLabel-labelContainer span {
font-size: xx-large;
}
You can adjust to your desired font size by changing the "font-size" value.
Target the label
CSS rule name in the classes
prop
import { makeStyles } from "@material-ui/core";
const useStyles = makeStyles({
customLabelStyle: {
fontSize: "24px"
}
});
function App () {
const classes = useStyles();
return (
<StepLabel classes={{label: classes.customLabelStyle}}>
);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.