复选框:更改根本样式
如何在复选框中更改根样式。这行不通。
<CheckboxItem
onChange={()}
checked={isChecked}
label="Show Checkbox"
classes={{ root: classes.checkbox }}
/>
className={{ root: classes.checkbox }}
也正在错误。谢谢。
How can I change the root styles in Checkbox. This does not work.
<CheckboxItem
onChange={()}
checked={isChecked}
label="Show Checkbox"
classes={{ root: classes.checkbox }}
/>
className={{ root: classes.checkbox }}
is erroring out as well. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
sx
属性(例如文档建议)进行此操作:另一种方法可以创建样式的组件:
如果以上不是很大的帮助,请您提供更多有关您想要的信息的信息更改和MUI的版本,可能会给您发送一个有效的示例。
You can do it either using the
sx
property like the documentation suggests:Another way you can create a styled component:
In case the above it's not a big help can you please provide some more info of what you want to change and the version of MUI and probably can send you a working sample.