我希望我的自定义Divider变体就像内置的'middle'一样,但又厚又短。似乎默认的'fullWidth'变体被用作基变量,文档中没有答案,如何使用另一个变体作为基。
const theme = createTheme({
components: {
MuiDivider: {
variants: [
{
props: { variant: 'thick-short' },
style: {
//This style got merged with 'fullWidth' one
//but I would like to have 'middle'
borderBottomWidth: '16px',
width: '20%',
},
},
],
},
},
})发布于 2022-11-13 12:49:53
https://stackoverflow.com/questions/74421039
复制相似问题