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"
];
}
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"
];
}
Share
Improve this question
asked Oct 5, 2020 at 7:25
theWanderertheWanderer
6562 gold badges13 silver badges34 bronze badges
2 Answers
Reset to default 3Perhaps 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}}>
);
}
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745405189a4626281.html
评论列表(0条)