mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 23:59:12 +08:00
80e7cc0afd
* fix: <Icon component={HomeOutlined} /> align issue close #33703 * update snapshot
549 B
549 B
order | title | ||||
---|---|---|---|---|---|
1 |
|
zh-CN
双色图标可以通过 twoToneColor
属性设置主题色。
en-US
You can set twoToneColor
prop to specific primary color for two-tone icons.
import { Space } from 'antd';
import { SmileTwoTone, HeartTwoTone, CheckCircleTwoTone } from '@ant-design/icons';
ReactDOM.render(
<Space>
<SmileTwoTone />
<HeartTwoTone twoToneColor="#eb2f96" />
<CheckCircleTwoTone twoToneColor="#52c41a" />
</Space>,
mountNode,
);