mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 13:59:11 +08:00
610 B
610 B
order | title | ||||
---|---|---|---|---|---|
1 |
|
zh-CN
可以通过设置 theme
属性为 twoTone
来渲染双色图标,并且可以设置主题色。
en-US
Specify the property theme
to twoTone
to render two-tone icons. You can also set the primary color.
import { Icon } from 'antd';
ReactDOM.render(
<div className="icons-list">
<Icon type="smile" theme="twoTone" />
<Icon type="heart" theme="twoTone" twoToneColor="#eb2f96" />
<Icon type="check-circle" theme="twoTone" twoToneColor="#52c41a" />
</div>,
mountNode,
);