You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
586 B

---
order: 2
title:
zh-CN: 图标
en-US: Icon
---
## zh-CN
10 years ago
有图标的标签。
## en-US
The Tab with Icon.
```jsx
import { Tabs, Icon } from 'antd';
const { TabPane } = Tabs;
9 years ago
ReactDOM.render(
<Tabs defaultActiveKey="2">
<TabPane
tab={
<span>
<Icon type="apple" />
Tab 1
</span>
}
key="1"
>
Tab 1
9 years ago
</TabPane>
<TabPane
tab={
<span>
<Icon type="android" />
Tab 2
</span>
}
key="2"
>
Tab 2
9 years ago
</TabPane>
</Tabs>,
mountNode,
);
```