mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 21:18:01 +08:00
425 B
425 B
order | title |
---|---|
2 | 图标 |
有图标的标签。
import { Tabs, Icon } from 'antd';
const TabPane = Tabs.TabPane;
ReactDOM.render(
<Tabs defaultActiveKey="2">
<TabPane tab={<span><Icon type="apple" />选项卡一</span>} key="1">
选项卡一
</TabPane>
<TabPane tab={<span><Icon type="android" />选项卡二</span>} key="2">
选项卡二
</TabPane>
</Tabs>
, mountNode);