如何在React material-ui中更改活动标签的颜色? [英] How change active tab color in React material-ui?

查看:88
本文介绍了如何在React material-ui中更改活动标签的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改活动标签的颜色?

How I can change the color of the active tab?

我的意思是,这pink行,看图片.

I mean, this pink line, look at the pic.

推荐答案

好,您有两个选择:

您可以自定义主题:
http://www.material-ui.com/#/customization/themes

You could customize the theme:
http://www.material-ui.com/#/customization/themes

但是最简单的方法是使用inkBarStyle属性.
您可以在文档中看到它..
示例:

But the easiest way would be using the inkBarStyle property.
You can see it in the docs..
Example:

<Tabs inkBarStyle={{background: 'blue'}}>...

这篇关于如何在React material-ui中更改活动标签的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆