【发布时间】:2022-11-02 05:30:59
【问题描述】:
有没有一种更简洁的方法来编写以下内容,利用 sx 道具对间距单位的访问?
<MUIComponent sx={{ borderRadius: '4px 8px 12px 16px' }} />
像这样的东西?
<MUIComponent sx={{ borderRadius: [1, 2, 3, 4] }} />
我在the docs 中找不到任何内容,但如果此功能不存在,我会感到惊讶...
【问题讨论】:
标签: css reactjs material-ui sx