reactjs - 如何使用主题组件自定义 Mui 中的概述输入?
问题描述
当他们将鼠标悬停在此输入上时,我想更改边框的颜色,我不知道该怎么做。我已经尝试过这段代码,但它不起作用。
components: {
MuiButton: {
variants: [
{
props: { variant: "contained" },
style: {
borderRadius: "50px"
}
},
{
props: { variant: "outlined" },
style: {
borderRadius: "50px",
"&:hover": {
borderColor: "yellow"
}
}
},
{
props: { variant: "text" },
style: {
fontSize: "smaller",
borderRadius: "50px"
}
}
]
},**MuiOutlinedInput:{
"&:hover": {
borderColor: "yellow"
}**
}
}
})
解决方案
推荐阅读
- sql - 对 DDL_DATABASE_LEVEL_EVENTS 使用触发器与列出特定事件类型是否有任何风险?
- docusignapi - 从模板中检索文档
- reactjs - 使用原生基础动态更改主题
- ios - URLSession 不遵循 ios 13 上的 302
- c# - 为什么使用四元数(vs Euler)设置旋转会导致极快的角速度?统一
- graphql - 如何在 GraphQL 中停止订阅?
- reactjs - 在没有输入字段的情况下将本地图像文件上传到 aws s3
- angular - 你如何在 Angular 中使用计算/计算的属性?
- node.js - 如何使用 Apple News API 自动发布内容?
- google-cloud-platform - 使用操作系统和数据磁盘从 GCP 虚拟机创建自定义映像