mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-17 02:18:07 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
33 lines
577 B
Markdown
33 lines
577 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 } from 'antd';
|
|
import { HomeOutlined, UserOutlined } from '@ant-design/icons';
|
|
|
|
export default () => (
|
|
<Breadcrumb>
|
|
<Breadcrumb.Item href="">
|
|
<HomeOutlined />
|
|
</Breadcrumb.Item>
|
|
<Breadcrumb.Item href="">
|
|
<UserOutlined />
|
|
<span>Application List</span>
|
|
</Breadcrumb.Item>
|
|
<Breadcrumb.Item>Application</Breadcrumb.Item>
|
|
</Breadcrumb>
|
|
);
|
|
```
|