mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-20 12:28:10 +08:00
35 lines
548 B
Markdown
35 lines
548 B
Markdown
---
|
|
order: 1
|
|
title:
|
|
zh-CN: 带有图标的
|
|
en-US: With an Icon
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
图标放在文字前面。
|
|
|
|
## en-US
|
|
|
|
The icon should be placed in front of the text.
|
|
|
|
````jsx
|
|
import { Breadcrumb, Icon } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<Breadcrumb>
|
|
<Breadcrumb.Item href="">
|
|
<Icon type="home" />
|
|
</Breadcrumb.Item>
|
|
<Breadcrumb.Item href="">
|
|
<Icon type="user" />
|
|
<span>Application List</span>
|
|
</Breadcrumb.Item>
|
|
<Breadcrumb.Item>
|
|
Application
|
|
</Breadcrumb.Item>
|
|
</Breadcrumb>,
|
|
mountNode
|
|
);
|
|
````
|