我想更改步进标签的字体大小以及标签和圆圈之间的边距。默认marginTop是16px,我想缩小它,有什么办法吗?
这是来自材料 ui 的 Codesandbox 代码: https://codesandbox.io/s/tnpyj? file=/demo.js:0-6101
<Stepper alternativeLabel nonLinear activeStep={activeStep}>
{steps.map((label, index) => {
const stepProps = {};
const buttonProps = {};
if (isStepOptional(index)) {
buttonProps.optional = <Typography variant="caption">Optional</Typography>;
}
if (isStepSkipped(index)) {
stepProps.completed = false;
}
return (
<Step key={label} {...stepProps}>
<StepButton
onClick={handleStep(index)}
completed={isStepComplete(index)}
{...buttonProps}
>
{label}
</StepButton>
</Step>
);
})}
</Stepper>
```
慕勒3428872
慕田峪4524236
相关分类